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
- CompositeDuplexBindingElementImporter.cs
- NamedPipeAppDomainProtocolHandler.cs
- DataGridViewSelectedCellCollection.cs
- VariableQuery.cs
- GridViewColumn.cs
- CodeCastExpression.cs
- FrameAutomationPeer.cs
- LocationUpdates.cs
- OdbcDataAdapter.cs
- CultureTable.cs
- PointHitTestResult.cs
- TabControlCancelEvent.cs
- WebPartRestoreVerb.cs
- CharUnicodeInfo.cs
- TdsParserSafeHandles.cs
- FixedTextPointer.cs
- X509WindowsSecurityToken.cs
- ListSourceHelper.cs
- CFGGrammar.cs
- SharedTcpTransportManager.cs
- AttributeUsageAttribute.cs
- RemoteWebConfigurationHostStream.cs
- ApplyImportsAction.cs
- BaseCollection.cs
- IgnoreSectionHandler.cs
- RouteItem.cs
- UInt32.cs
- ConfigurationLocation.cs
- BaseResourcesBuildProvider.cs
- CachedPathData.cs
- Drawing.cs
- embossbitmapeffect.cs
- DBParameter.cs
- WebRequestModuleElement.cs
- SchemaUtility.cs
- InstanceCollisionException.cs
- DataBoundLiteralControl.cs
- TreeNodeMouseHoverEvent.cs
- ImageButton.cs
- DoubleLinkList.cs
- WebPartEditVerb.cs
- DispatcherTimer.cs
- SqlServer2KCompatibilityAnnotation.cs
- StoreItemCollection.cs
- SchemaCollectionPreprocessor.cs
- KeyTimeConverter.cs
- ProfessionalColors.cs
- RootCodeDomSerializer.cs
- FixedPageStructure.cs
- Propagator.JoinPropagator.cs
- CodeTypeMemberCollection.cs
- RangeBaseAutomationPeer.cs
- ComboBoxRenderer.cs
- PropagatorResult.cs
- SqlClientPermission.cs
- WindowsAuthenticationEventArgs.cs
- MailMessage.cs
- TreeBuilderBamlTranslator.cs
- OutputChannel.cs
- UserPreference.cs
- ViewStateException.cs
- ArgumentException.cs
- FusionWrap.cs
- CngAlgorithmGroup.cs
- BitVector32.cs
- Encoder.cs
- StringKeyFrameCollection.cs
- VariableAction.cs
- ImmutableCommunicationTimeouts.cs
- SelectionGlyph.cs
- DelayedRegex.cs
- RSAPKCS1SignatureFormatter.cs
- TableRow.cs
- AliasExpr.cs
- SmiContext.cs
- HwndHost.cs
- BinaryReader.cs
- Variable.cs
- PenCursorManager.cs
- Rect.cs
- NameValuePair.cs
- ShaperBuffers.cs
- CodeBinaryOperatorExpression.cs
- RectangleHotSpot.cs
- WebPartExportVerb.cs
- Stroke.cs
- CheckBoxDesigner.cs
- invalidudtexception.cs
- DispatcherExceptionEventArgs.cs
- PEFileEvidenceFactory.cs
- QueryCacheKey.cs
- ValueTypeFixupInfo.cs
- InternalBufferOverflowException.cs
- RuleSettings.cs
- ListViewInsertionMark.cs
- LineSegment.cs
- TransactionFilter.cs
- ActivityIdHeader.cs
- DesignerValidatorAdapter.cs
- Attributes.cs