Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / AutomationPropertyInfo.cs / 1 / 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
- Imaging.cs
- ToolStripPanel.cs
- _NegoStream.cs
- ObjectDataProvider.cs
- XmlSchemaSimpleType.cs
- SettingsSection.cs
- LinkedDataMemberFieldEditor.cs
- DataGridViewCellMouseEventArgs.cs
- TransportSecurityProtocolFactory.cs
- PersistenceContext.cs
- StandardToolWindows.cs
- CodeTypeReferenceCollection.cs
- ItemsPanelTemplate.cs
- RelatedView.cs
- Int32AnimationUsingKeyFrames.cs
- BrushValueSerializer.cs
- ReliabilityContractAttribute.cs
- DataServiceHostWrapper.cs
- HandleCollector.cs
- SettingsPropertyValue.cs
- ListViewSortEventArgs.cs
- DependencyPropertyKind.cs
- PerformanceCounterLib.cs
- XsltInput.cs
- ButtonFieldBase.cs
- RoleGroup.cs
- XmlIlVisitor.cs
- EncoderBestFitFallback.cs
- DefaultTraceListener.cs
- ViewLoader.cs
- FactoryRecord.cs
- FlowDocumentReader.cs
- TouchesCapturedWithinProperty.cs
- CopyOnWriteList.cs
- BufferAllocator.cs
- StructuralComparisons.cs
- WizardPanelChangingEventArgs.cs
- XmlLanguageConverter.cs
- StringFunctions.cs
- XmlSchemaSequence.cs
- SkipStoryboardToFill.cs
- arclist.cs
- MetadataFile.cs
- XhtmlConformanceSection.cs
- HostVisual.cs
- C14NUtil.cs
- GeometryConverter.cs
- InitializationEventAttribute.cs
- UrlMappingCollection.cs
- DataColumnChangeEvent.cs
- PenLineJoinValidation.cs
- RequestTimeoutManager.cs
- SoapSchemaImporter.cs
- StateRuntime.cs
- DesignerActionUIStateChangeEventArgs.cs
- XmlMtomWriter.cs
- TextTreeText.cs
- RadioButtonList.cs
- Rule.cs
- CodeNamespace.cs
- ToolStripPanelRenderEventArgs.cs
- ExtentCqlBlock.cs
- TimeEnumHelper.cs
- ThrowHelper.cs
- GeneratedView.cs
- Vector3DKeyFrameCollection.cs
- SqlGenericUtil.cs
- PageTheme.cs
- DataServiceResponse.cs
- RuntimeArgumentHandle.cs
- ExtensionElement.cs
- VersionedStream.cs
- DependentTransaction.cs
- OutputCacheModule.cs
- RsaSecurityToken.cs
- TransformerConfigurationWizardBase.cs
- WSFederationHttpBindingElement.cs
- ToolStripComboBox.cs
- DefaultProxySection.cs
- TemplateComponentConnector.cs
- PageCanvasSize.cs
- Command.cs
- Pair.cs
- DecoderExceptionFallback.cs
- XmlSchemaSimpleTypeList.cs
- SecurityResources.cs
- SubstitutionDesigner.cs
- TableCellCollection.cs
- HttpApplicationFactory.cs
- TableLayoutCellPaintEventArgs.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- XmlSchemaGroupRef.cs
- ComplexLine.cs
- UInt32Storage.cs
- PKCS1MaskGenerationMethod.cs
- OracleDataReader.cs
- Attribute.cs
- TextTreeRootNode.cs
- Drawing.cs
- Timer.cs