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
- XmlSchemaAnnotation.cs
- EmptyStringExpandableObjectConverter.cs
- TypeConverter.cs
- InplaceBitmapMetadataWriter.cs
- MouseEvent.cs
- basecomparevalidator.cs
- SmtpSection.cs
- ContainerParaClient.cs
- X509WindowsSecurityToken.cs
- StartUpEventArgs.cs
- CallbackValidatorAttribute.cs
- Pair.cs
- IResourceProvider.cs
- MsmqIntegrationProcessProtocolHandler.cs
- GridViewHeaderRowPresenter.cs
- PointLightBase.cs
- DependentList.cs
- VSWCFServiceContractGenerator.cs
- PatternMatcher.cs
- ModuleBuilder.cs
- ModelItemCollectionImpl.cs
- DataViewManager.cs
- RemotingAttributes.cs
- DbProviderFactories.cs
- UrlPropertyAttribute.cs
- XDeferredAxisSource.cs
- SessionPageStatePersister.cs
- DynamicILGenerator.cs
- XPathNode.cs
- CheckBoxRenderer.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- DataRowView.cs
- DataGridColumnHeaderAutomationPeer.cs
- PropertyTab.cs
- MailMessage.cs
- WebPartDescription.cs
- SiteMapNodeItem.cs
- ObjectToModelValueConverter.cs
- HMACSHA512.cs
- MenuEventArgs.cs
- DesignerRegionMouseEventArgs.cs
- TrackingParameters.cs
- TimelineGroup.cs
- EntityTypeEmitter.cs
- ConfigurationLockCollection.cs
- WebPartHeaderCloseVerb.cs
- FilterableData.cs
- HttpCapabilitiesEvaluator.cs
- TimeManager.cs
- DrawingDrawingContext.cs
- EntitySqlException.cs
- CodeDirectoryCompiler.cs
- Accessible.cs
- ProfileManager.cs
- CachedFontFace.cs
- XmlnsCompatibleWithAttribute.cs
- Timer.cs
- DynamicField.cs
- Geometry.cs
- BaseTemplateCodeDomTreeGenerator.cs
- PointLightBase.cs
- KeyboardEventArgs.cs
- SortedList.cs
- ComponentChangingEvent.cs
- TableLayoutSettings.cs
- Parameter.cs
- SharedPerformanceCounter.cs
- PeerOutputChannel.cs
- ToolStripGrip.cs
- VariableAction.cs
- ManagedFilter.cs
- GroupBox.cs
- MergePropertyDescriptor.cs
- Command.cs
- FeatureSupport.cs
- UidManager.cs
- CellLabel.cs
- CompositeControl.cs
- EqualityComparer.cs
- XmlSiteMapProvider.cs
- BasicViewGenerator.cs
- BinaryReader.cs
- AttributeQuery.cs
- PageAdapter.cs
- PackageDigitalSignature.cs
- ChangeInterceptorAttribute.cs
- ApplySecurityAndSendAsyncResult.cs
- ExtensionWindow.cs
- SchemaElement.cs
- SQLString.cs
- SByteStorage.cs
- XmlEncoding.cs
- RichTextBoxConstants.cs
- ConfigurationConverterBase.cs
- Publisher.cs
- AssociationTypeEmitter.cs
- TextSegment.cs
- GridSplitter.cs
- OleDbConnectionInternal.cs
- FillErrorEventArgs.cs