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
- ConstraintEnumerator.cs
- WSSecurityTokenSerializer.cs
- SizeLimitedCache.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- AnimationLayer.cs
- DefaultExpression.cs
- UTF7Encoding.cs
- DataTableReaderListener.cs
- IdnMapping.cs
- ReadOnlyTernaryTree.cs
- CollectionExtensions.cs
- ChangeTracker.cs
- DBSqlParserColumnCollection.cs
- ZipIOBlockManager.cs
- CollectionDataContractAttribute.cs
- RootAction.cs
- InstallerTypeAttribute.cs
- odbcmetadatacolumnnames.cs
- uribuilder.cs
- XPathNavigatorKeyComparer.cs
- Root.cs
- DataObjectEventArgs.cs
- COSERVERINFO.cs
- CodeTypeParameterCollection.cs
- CodeArrayCreateExpression.cs
- IndentTextWriter.cs
- PageContent.cs
- Reference.cs
- SQLGuidStorage.cs
- DataRowComparer.cs
- SerializableAttribute.cs
- DrawingAttributesDefaultValueFactory.cs
- SecurityContext.cs
- MsmqChannelFactory.cs
- PKCS1MaskGenerationMethod.cs
- DetailsViewUpdateEventArgs.cs
- SecurityIdentifierElement.cs
- CommandHelper.cs
- Rules.cs
- LogEntrySerializer.cs
- HttpRequestCacheValidator.cs
- OutOfProcStateClientManager.cs
- ObjectQuery.cs
- SqlConnectionManager.cs
- Compiler.cs
- TemplateKeyConverter.cs
- HttpProtocolReflector.cs
- Point3DAnimation.cs
- AbsoluteQuery.cs
- ProfileBuildProvider.cs
- EntitySetDataBindingList.cs
- RecognizeCompletedEventArgs.cs
- AVElementHelper.cs
- MetabaseSettingsIis7.cs
- JournalEntryListConverter.cs
- Identity.cs
- TreeViewImageGenerator.cs
- XPathEmptyIterator.cs
- StateChangeEvent.cs
- TaskFileService.cs
- FixUpCollection.cs
- DataTemplateKey.cs
- TemplateControlCodeDomTreeGenerator.cs
- PropertyManager.cs
- Visual3DCollection.cs
- DateTimeConverter2.cs
- PaintEvent.cs
- VBCodeProvider.cs
- PointUtil.cs
- FontConverter.cs
- TableLayoutStyleCollection.cs
- DrawingState.cs
- ResourceDefaultValueAttribute.cs
- ScrollItemPatternIdentifiers.cs
- TextPenaltyModule.cs
- MulticastDelegate.cs
- assemblycache.cs
- MetadataException.cs
- BufferedStream.cs
- NamespaceExpr.cs
- DbException.cs
- PersonalizablePropertyEntry.cs
- TextWriterTraceListener.cs
- SchemaEntity.cs
- FamilyMap.cs
- ToolStripPanelRow.cs
- FragmentQueryProcessor.cs
- XmlValidatingReader.cs
- OrderedDictionaryStateHelper.cs
- PropertyGridEditorPart.cs
- MasterPageBuildProvider.cs
- WSSecurityXXX2005.cs
- ApplicationException.cs
- DataContractJsonSerializer.cs
- IisTraceListener.cs
- RemotingAttributes.cs
- MatchAttribute.cs
- AffineTransform3D.cs
- SchemaNamespaceManager.cs
- WindowsRegion.cs