Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / AutomationPropertyInfo.cs / 1305600 / AutomationPropertyInfo.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: class containing information about an automation property // // History: // 06/04/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System; using System.Windows.Automation; namespace MS.Internal.Automation { // This is used to cast the VARIANT-based objects that we get back from the unmanaged // API to our own types - eg enums need to be cast from int VT_I4s to real enums. internal delegate object AutomationPropertyConverter( object valueAsObject ); // class containing information about an automation property internal class AutomationPropertyInfo { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal AutomationPropertyInfo( AutomationPropertyConverter converter, AutomationProperty id, Type type, object defaultValue ) { _id = id; _type = type; _defaultValue = defaultValue; _converter = converter; } #endregion Constructors //------------------------------------------------------ // // Internal Properties // //----------------------------------------------------- #region Internal Properties internal AutomationProperty ID { get { return _id; } } internal object DefaultValue { get { return _defaultValue; } } internal AutomationPropertyConverter ObjectConverter { get { return _converter; } } internal Type Type { get { return _type; } } #endregion Internal Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private AutomationProperty _id; private Type _type; private object _defaultValue; private AutomationPropertyConverter _converter; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: class containing information about an automation property // // History: // 06/04/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System; using System.Windows.Automation; namespace MS.Internal.Automation { // This is used to cast the VARIANT-based objects that we get back from the unmanaged // API to our own types - eg enums need to be cast from int VT_I4s to real enums. internal delegate object AutomationPropertyConverter( object valueAsObject ); // class containing information about an automation property internal class AutomationPropertyInfo { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal AutomationPropertyInfo( AutomationPropertyConverter converter, AutomationProperty id, Type type, object defaultValue ) { _id = id; _type = type; _defaultValue = defaultValue; _converter = converter; } #endregion Constructors //------------------------------------------------------ // // Internal Properties // //----------------------------------------------------- #region Internal Properties internal AutomationProperty ID { get { return _id; } } internal object DefaultValue { get { return _defaultValue; } } internal AutomationPropertyConverter ObjectConverter { get { return _converter; } } internal Type Type { get { return _type; } } #endregion Internal Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private AutomationProperty _id; private Type _type; private object _defaultValue; private AutomationPropertyConverter _converter; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Function.cs
- BindingWorker.cs
- Buffer.cs
- MimePart.cs
- SimpleParser.cs
- VectorAnimationUsingKeyFrames.cs
- HotCommands.cs
- __Error.cs
- FormViewCommandEventArgs.cs
- ControlAdapter.cs
- ContractMethodParameterInfo.cs
- DataAdapter.cs
- XPathAncestorQuery.cs
- CodeStatementCollection.cs
- Timer.cs
- TransformValueSerializer.cs
- MediaContext.cs
- CommonDialog.cs
- EncryptedKeyHashIdentifierClause.cs
- DataGridColumnEventArgs.cs
- CommonObjectSecurity.cs
- DispatcherSynchronizationContext.cs
- Transaction.cs
- Marshal.cs
- FileSystemWatcher.cs
- ArithmeticException.cs
- NullableBoolConverter.cs
- DataGridItemEventArgs.cs
- TextEditorParagraphs.cs
- ModelProperty.cs
- CatalogZone.cs
- BindingGroup.cs
- ReachPrintTicketSerializerAsync.cs
- RepeaterItemCollection.cs
- XmlJsonWriter.cs
- ColorConverter.cs
- CustomAttributeFormatException.cs
- FileSecurity.cs
- PositiveTimeSpanValidator.cs
- DefaultValidator.cs
- LinqDataSourceSelectEventArgs.cs
- DataSvcMapFileSerializer.cs
- TransformGroup.cs
- EntitySetDataBindingList.cs
- DataTable.cs
- PositiveTimeSpanValidatorAttribute.cs
- Pair.cs
- Attributes.cs
- HttpFileCollection.cs
- ProfileSettings.cs
- XmlHelper.cs
- RequestTimeoutManager.cs
- OdbcParameterCollection.cs
- X509UI.cs
- EntitySqlQueryBuilder.cs
- ReaderWriterLockSlim.cs
- StaticFileHandler.cs
- MessageQueueAccessControlEntry.cs
- TreeNodeEventArgs.cs
- XmlSchemaCollection.cs
- AuthenticateEventArgs.cs
- SoapEnumAttribute.cs
- ParserStreamGeometryContext.cs
- SuppressMessageAttribute.cs
- ShaderEffect.cs
- MsmqBindingFilter.cs
- GlyphRunDrawing.cs
- ListViewItem.cs
- DataStreamFromComStream.cs
- BindingList.cs
- ArrayTypeMismatchException.cs
- InstanceDataCollection.cs
- Oci.cs
- ReflectTypeDescriptionProvider.cs
- Columns.cs
- EpmTargetPathSegment.cs
- EventMappingSettings.cs
- WindowHideOrCloseTracker.cs
- BitmapEffectInput.cs
- SafeReversePInvokeHandle.cs
- ViewStateModeByIdAttribute.cs
- MouseActionValueSerializer.cs
- LinkButton.cs
- TaskDesigner.cs
- UdpDuplexChannel.cs
- DependencyObjectPropertyDescriptor.cs
- TextRangeEditTables.cs
- InvalidateEvent.cs
- BitArray.cs
- ScriptBehaviorDescriptor.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- URLMembershipCondition.cs
- DecoderNLS.cs
- Error.cs
- HttpServerVarsCollection.cs
- ModelToObjectValueConverter.cs
- CornerRadiusConverter.cs
- Peer.cs
- PassportAuthentication.cs
- TokenBasedSetEnumerator.cs