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
- TextEditorMouse.cs
- brushes.cs
- EmptyImpersonationContext.cs
- FieldMetadata.cs
- GridViewRowEventArgs.cs
- BulletChrome.cs
- TimeoutValidationAttribute.cs
- SSmlParser.cs
- SudsWriter.cs
- Timer.cs
- SqlWorkflowInstanceStore.cs
- SecurityKeyIdentifier.cs
- OdbcRowUpdatingEvent.cs
- CryptoConfig.cs
- CqlIdentifiers.cs
- ObjectTokenCategory.cs
- CommandEventArgs.cs
- IndicFontClient.cs
- ProvideValueServiceProvider.cs
- Thread.cs
- ZipPackage.cs
- TextRangeSerialization.cs
- LinkLabel.cs
- ObjectListSelectEventArgs.cs
- GlobalizationSection.cs
- ZipIOExtraFieldZip64Element.cs
- PenContext.cs
- FormsAuthenticationEventArgs.cs
- GraphicsContext.cs
- VisualBrush.cs
- DetailsViewRowCollection.cs
- MemberAccessException.cs
- AlphabeticalEnumConverter.cs
- FeatureManager.cs
- NamespaceMapping.cs
- WebPartManager.cs
- PenThread.cs
- RoleGroup.cs
- RequestStatusBarUpdateEventArgs.cs
- EntityProxyFactory.cs
- WsdlBuildProvider.cs
- RequestTimeoutManager.cs
- CompareValidator.cs
- DisplayMemberTemplateSelector.cs
- BinaryUtilClasses.cs
- Privilege.cs
- TransformPattern.cs
- RenameRuleObjectDialog.cs
- ModelItemExtensions.cs
- GatewayIPAddressInformationCollection.cs
- COM2PropertyDescriptor.cs
- Operators.cs
- SerializationSectionGroup.cs
- PathFigureCollection.cs
- WebSysDescriptionAttribute.cs
- SQLInt64.cs
- Environment.cs
- LocalFileSettingsProvider.cs
- FlowDocument.cs
- ShapingWorkspace.cs
- FacetChecker.cs
- StreamGeometry.cs
- PropertyValueUIItem.cs
- ExtenderControl.cs
- SiteIdentityPermission.cs
- CheckBoxList.cs
- Switch.cs
- BindingGroup.cs
- ObjectKeyFrameCollection.cs
- EdgeModeValidation.cs
- WebPartDescriptionCollection.cs
- SiteMapPath.cs
- UIHelper.cs
- CodeObject.cs
- StaticSiteMapProvider.cs
- ScrollBar.cs
- SqlNodeAnnotations.cs
- DataBoundControlDesigner.cs
- MainMenu.cs
- GenerateHelper.cs
- ParameterReplacerVisitor.cs
- SmtpNetworkElement.cs
- ValidatorAttribute.cs
- WindowShowOrOpenTracker.cs
- GregorianCalendarHelper.cs
- LeafCellTreeNode.cs
- BuildResultCache.cs
- ScrollChangedEventArgs.cs
- StringToken.cs
- DataGridItemCollection.cs
- ImageCodecInfo.cs
- UriTemplateClientFormatter.cs
- localization.cs
- GridViewRow.cs
- TextChangedEventArgs.cs
- AsyncOperationManager.cs
- fixedPageContentExtractor.cs
- SafeNativeMethodsCLR.cs
- AttributeCollection.cs
- Model3DGroup.cs