Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SearchForVirtualItemEventArgs.cs
- DataGridGeneralPage.cs
- MergePropertyDescriptor.cs
- HexParser.cs
- NumberSubstitution.cs
- AsyncDataRequest.cs
- Input.cs
- XmlSignificantWhitespace.cs
- ScriptResourceInfo.cs
- InitializerFacet.cs
- DataGridViewSortCompareEventArgs.cs
- DebuggerAttributes.cs
- SelectionPatternIdentifiers.cs
- HMAC.cs
- BadImageFormatException.cs
- Privilege.cs
- MatrixAnimationUsingKeyFrames.cs
- Calendar.cs
- ElementUtil.cs
- CheckBoxList.cs
- TargetConverter.cs
- ProxyWebPartManagerDesigner.cs
- KeyValueConfigurationElement.cs
- ObjectListFieldsPage.cs
- TreeViewImageKeyConverter.cs
- HelpKeywordAttribute.cs
- JournalNavigationScope.cs
- ViewEvent.cs
- ErasingStroke.cs
- TreeNode.cs
- PropertyDescriptorCollection.cs
- XmlSiteMapProvider.cs
- Mapping.cs
- NonSerializedAttribute.cs
- ApplicationProxyInternal.cs
- InfoCardKeyedHashAlgorithm.cs
- Collection.cs
- DataExpression.cs
- DataGridViewSelectedRowCollection.cs
- controlskin.cs
- PackageProperties.cs
- SoapClientMessage.cs
- FrugalMap.cs
- ToolStripEditorManager.cs
- TemplateContainer.cs
- QueueAccessMode.cs
- TraceProvider.cs
- XmlTextEncoder.cs
- MultiByteCodec.cs
- CompiledQuery.cs
- EventEntry.cs
- XmlSerializerSection.cs
- SelectionItemProviderWrapper.cs
- RegistryKey.cs
- ApplicationSecurityManager.cs
- ComboBox.cs
- SchemaTableOptionalColumn.cs
- UIPermission.cs
- DisplayInformation.cs
- StorageEndPropertyMapping.cs
- CharacterBufferReference.cs
- ConstraintCollection.cs
- TextSelectionHelper.cs
- FloaterParaClient.cs
- MobileErrorInfo.cs
- mansign.cs
- InvokeSchedule.cs
- RoleGroup.cs
- SecurityKeyType.cs
- ConnectionManagementElementCollection.cs
- RowType.cs
- PeerNameResolver.cs
- FunctionOverloadResolver.cs
- Span.cs
- DesignerListAdapter.cs
- RedBlackList.cs
- XmlSerializationReader.cs
- ChtmlCommandAdapter.cs
- WebPartEditorApplyVerb.cs
- DataGridViewAdvancedBorderStyle.cs
- SubstitutionResponseElement.cs
- SafeRegistryHandle.cs
- XmlILConstructAnalyzer.cs
- DecimalConstantAttribute.cs
- PersonalizableAttribute.cs
- DataGridViewColumnConverter.cs
- ProcessModelSection.cs
- GenericRootAutomationPeer.cs
- RemotingAttributes.cs
- ColorAnimationUsingKeyFrames.cs
- HtmlMeta.cs
- PageStatePersister.cs
- XsdBuildProvider.cs
- RightsManagementResourceHelper.cs
- Validator.cs
- SecurityState.cs
- ActivityDelegate.cs
- TypeBinaryExpression.cs
- ControlType.cs
- DigitShape.cs