Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- OutputCacheModule.cs
- DataPagerField.cs
- WindowsRichEdit.cs
- XmlILModule.cs
- EditorZoneAutoFormat.cs
- HttpGetProtocolReflector.cs
- RawAppCommandInputReport.cs
- Drawing.cs
- SqlDataSourceConfigureSortForm.cs
- ProcessStartInfo.cs
- PersistChildrenAttribute.cs
- CompModSwitches.cs
- LassoHelper.cs
- Scripts.cs
- LinkButton.cs
- ParameterToken.cs
- BindingObserver.cs
- PrincipalPermission.cs
- ByteAnimationBase.cs
- CodeMemberMethod.cs
- FacetDescription.cs
- ChannelServices.cs
- StylusSystemGestureEventArgs.cs
- TextHidden.cs
- ContextStaticAttribute.cs
- CallbackHandler.cs
- TemplateComponentConnector.cs
- KnownTypesProvider.cs
- TypeDescriptionProvider.cs
- AddressingProperty.cs
- InputMethod.cs
- IPAddressCollection.cs
- ColorPalette.cs
- BevelBitmapEffect.cs
- AlignmentXValidation.cs
- TextFormatter.cs
- SerializationHelper.cs
- TableRowGroup.cs
- xmlsaver.cs
- ACE.cs
- PathNode.cs
- ObjectDataSourceView.cs
- SignatureDescription.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- Oci.cs
- GenerateScriptTypeAttribute.cs
- TextAutomationPeer.cs
- EntryIndex.cs
- MemberMaps.cs
- CellParagraph.cs
- ExtenderProvidedPropertyAttribute.cs
- XmlSchemaGroup.cs
- ThreadInterruptedException.cs
- DbConnectionInternal.cs
- WhitespaceRule.cs
- CurrentTimeZone.cs
- SmtpFailedRecipientException.cs
- DataServiceRequest.cs
- TextRenderingModeValidation.cs
- DateTimeOffsetStorage.cs
- ValidationError.cs
- WebServiceEnumData.cs
- EnumerableRowCollectionExtensions.cs
- FrameSecurityDescriptor.cs
- IncrementalReadDecoders.cs
- HttpServerUtilityBase.cs
- InvokeCompletedEventArgs.cs
- Operand.cs
- BinaryFormatterWriter.cs
- TreeView.cs
- SafeSecurityHelper.cs
- BitmapSizeOptions.cs
- SortedDictionary.cs
- SiteMapDataSource.cs
- BindingUtils.cs
- ContentValidator.cs
- FormsAuthenticationEventArgs.cs
- RangeBase.cs
- WorkflowItemPresenter.cs
- HtmlGenericControl.cs
- PropertyFilter.cs
- DocumentSchemaValidator.cs
- SmtpAuthenticationManager.cs
- WebDisplayNameAttribute.cs
- StringDictionaryWithComparer.cs
- ResizingMessageFilter.cs
- TextDecoration.cs
- Line.cs
- ArrayExtension.cs
- PersonalizationStateInfo.cs
- ExceptionValidationRule.cs
- TypeInitializationException.cs
- FloaterBaseParaClient.cs
- JsonDeserializer.cs
- CachingHintValidation.cs
- AtomMaterializerLog.cs
- COAUTHIDENTITY.cs
- Visual3D.cs
- TextParaLineResult.cs
- DataRecordObjectView.cs