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
- CapabilitiesRule.cs
- ExpressionReplacer.cs
- WeakEventTable.cs
- TemplateControlCodeDomTreeGenerator.cs
- CacheSection.cs
- Walker.cs
- StreamResourceInfo.cs
- AllMembershipCondition.cs
- UpdatePanelTrigger.cs
- SynchronizationContext.cs
- TextureBrush.cs
- XPathNavigatorKeyComparer.cs
- LoginDesigner.cs
- Latin1Encoding.cs
- BinaryReader.cs
- PolyLineSegmentFigureLogic.cs
- XmlProcessingInstruction.cs
- QualificationDataItem.cs
- DrawListViewColumnHeaderEventArgs.cs
- PagedDataSource.cs
- WebConfigurationManager.cs
- UseAttributeSetsAction.cs
- RectAnimationClockResource.cs
- Keywords.cs
- TextParagraphView.cs
- WindowsListViewSubItem.cs
- TraceData.cs
- HttpRequest.cs
- XmlSchemaObject.cs
- AppSecurityManager.cs
- SpStreamWrapper.cs
- OdbcConnectionHandle.cs
- RuleSettingsCollection.cs
- DataSourceCacheDurationConverter.cs
- WebPartDescription.cs
- HtmlInputFile.cs
- XmlILOptimizerVisitor.cs
- ListViewDeleteEventArgs.cs
- PaintValueEventArgs.cs
- SymmetricKey.cs
- _HeaderInfo.cs
- ListDependantCardsRequest.cs
- Base64Encoding.cs
- CreateUserErrorEventArgs.cs
- DescendantOverDescendantQuery.cs
- XmlElementAttribute.cs
- Stack.cs
- SqlDataRecord.cs
- Vector3DAnimationBase.cs
- WorkflowInstanceExtensionProvider.cs
- XmlQualifiedName.cs
- InheritablePropertyChangeInfo.cs
- XmlReaderSettings.cs
- EventWaitHandle.cs
- LinkGrep.cs
- WindowsNonControl.cs
- ActivityTypeResolver.xaml.cs
- ReaderWriterLock.cs
- WpfXamlMember.cs
- FlowLayoutPanel.cs
- HtmlTextArea.cs
- SqlTransaction.cs
- PointHitTestParameters.cs
- Vector3DAnimation.cs
- SchemaCollectionPreprocessor.cs
- XslCompiledTransform.cs
- sqlpipe.cs
- TextEditorSelection.cs
- ServiceOperationWrapper.cs
- EpmTargetTree.cs
- StyleBamlRecordReader.cs
- ExceptionWrapper.cs
- Size3D.cs
- BooleanSwitch.cs
- SqlMultiplexer.cs
- XmlSchemaSubstitutionGroup.cs
- HttpBrowserCapabilitiesWrapper.cs
- ExpressionLink.cs
- SafeBitVector32.cs
- XPathException.cs
- SqlServer2KCompatibilityAnnotation.cs
- ObjectAnimationUsingKeyFrames.cs
- XPathNodeInfoAtom.cs
- XhtmlBasicTextBoxAdapter.cs
- FontFamilyIdentifier.cs
- Graphics.cs
- XmlCharType.cs
- CngKeyCreationParameters.cs
- ImageButton.cs
- ClientApiGenerator.cs
- AuthStoreRoleProvider.cs
- ToolStripSeparator.cs
- TreeView.cs
- X509Utils.cs
- MinMaxParagraphWidth.cs
- StackBuilderSink.cs
- PreProcessInputEventArgs.cs
- DataControlHelper.cs
- MultiAsyncResult.cs
- ArithmeticLiteral.cs