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
- TreeNode.cs
- ScriptRegistrationManager.cs
- TextRangeBase.cs
- SqlDataRecord.cs
- WindowsListViewScroll.cs
- ListViewItem.cs
- FontInfo.cs
- XomlCompiler.cs
- HuffCodec.cs
- SimpleWebHandlerParser.cs
- EdmItemCollection.OcAssemblyCache.cs
- DecoderExceptionFallback.cs
- FixedSOMContainer.cs
- AstNode.cs
- CacheHelper.cs
- ControlPropertyNameConverter.cs
- SqlConnectionPoolProviderInfo.cs
- VectorCollection.cs
- HostingEnvironment.cs
- XmlSiteMapProvider.cs
- HttpException.cs
- DocumentOrderQuery.cs
- FontDialog.cs
- XmlSchemaAnyAttribute.cs
- Int32RectConverter.cs
- FormClosedEvent.cs
- LayoutDump.cs
- ObjectSecurity.cs
- SourceFileBuildProvider.cs
- TransformConverter.cs
- DesignerDataRelationship.cs
- SafeLibraryHandle.cs
- ObjectDataSourceSelectingEventArgs.cs
- ObjectIDGenerator.cs
- AuthenticationManager.cs
- SecurityDocument.cs
- RectangleGeometry.cs
- EdmSchemaAttribute.cs
- PerspectiveCamera.cs
- TypeReference.cs
- SafeLocalMemHandle.cs
- TypeDescriptionProviderAttribute.cs
- RunClient.cs
- HttpListener.cs
- CodeObject.cs
- Container.cs
- PresentationTraceSources.cs
- MinimizableAttributeTypeConverter.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- OpenFileDialog.cs
- CodePageEncoding.cs
- CodeAttributeArgumentCollection.cs
- ReflectionTypeLoadException.cs
- Bits.cs
- XmlSchemaAnyAttribute.cs
- EventLogPermissionEntry.cs
- StringValidatorAttribute.cs
- FilteredDataSetHelper.cs
- Formatter.cs
- AssemblyAttributes.cs
- ApplicationDirectoryMembershipCondition.cs
- PauseStoryboard.cs
- StringComparer.cs
- SessionStateModule.cs
- ThemeDictionaryExtension.cs
- HttpHeaderCollection.cs
- CodeBinaryOperatorExpression.cs
- KeyboardDevice.cs
- OrElse.cs
- HtmlInputCheckBox.cs
- WebCategoryAttribute.cs
- IIS7UserPrincipal.cs
- SiteMapNodeItem.cs
- LocationSectionRecord.cs
- CodeTypeParameterCollection.cs
- TreeBuilderBamlTranslator.cs
- EditorAttribute.cs
- DynamicRendererThreadManager.cs
- WhereaboutsReader.cs
- BaseCodePageEncoding.cs
- WebPartDisplayModeCollection.cs
- UrlAuthorizationModule.cs
- BitmapEffectGroup.cs
- LambdaCompiler.ControlFlow.cs
- RegexCaptureCollection.cs
- BaseParser.cs
- EmptyElement.cs
- WindowsStatusBar.cs
- ToolStripDesigner.cs
- RemoteWebConfigurationHostStream.cs
- HttpListenerElement.cs
- MouseDevice.cs
- FileUpload.cs
- DropShadowEffect.cs
- InstanceLockLostException.cs
- WebPartUtil.cs
- WebPartConnectionsCancelVerb.cs
- DynamicField.cs
- AggregateNode.cs
- Underline.cs