Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- OdbcRowUpdatingEvent.cs
- TreeView.cs
- SubMenuStyleCollectionEditor.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- RectAnimationUsingKeyFrames.cs
- HttpCapabilitiesEvaluator.cs
- FragmentNavigationEventArgs.cs
- ReflectionServiceProvider.cs
- VisualProxy.cs
- EncoderExceptionFallback.cs
- DefaultIfEmptyQueryOperator.cs
- HttpCacheVaryByContentEncodings.cs
- DataViewListener.cs
- NativeConfigurationLoader.cs
- SpecularMaterial.cs
- JoinElimination.cs
- SQlBooleanStorage.cs
- TypedReference.cs
- GridSplitter.cs
- ValidatorCompatibilityHelper.cs
- XmlArrayAttribute.cs
- LinearQuaternionKeyFrame.cs
- DynamicVirtualDiscoSearcher.cs
- AppDomainAttributes.cs
- ParameterEditorUserControl.cs
- BinaryParser.cs
- TargetInvocationException.cs
- XPathNode.cs
- XamlInt32CollectionSerializer.cs
- LabelInfo.cs
- XmlHierarchicalEnumerable.cs
- Encoding.cs
- ToolStripDropDownClosedEventArgs.cs
- XmlCustomFormatter.cs
- ActivityTypeCodeDomSerializer.cs
- Helper.cs
- FormsAuthenticationUserCollection.cs
- WebBrowserNavigatingEventHandler.cs
- RegistryKey.cs
- TextRangeEditTables.cs
- WindowPatternIdentifiers.cs
- LedgerEntryCollection.cs
- ErrorInfoXmlDocument.cs
- ProxyFragment.cs
- MarkupCompilePass2.cs
- SQLBytes.cs
- DocumentCollection.cs
- TypeUnloadedException.cs
- DocumentSignatureManager.cs
- RectAnimation.cs
- ToolStripDropDownClosedEventArgs.cs
- ExtensionFile.cs
- TextServicesContext.cs
- CollectionChange.cs
- XmlWrappingReader.cs
- SoapIncludeAttribute.cs
- SelectionHighlightInfo.cs
- ThreadInterruptedException.cs
- InvokeWebServiceDesigner.cs
- HtmlControlDesigner.cs
- DebugHandleTracker.cs
- IpcServerChannel.cs
- QilParameter.cs
- ClientConvert.cs
- NumberAction.cs
- CharacterBuffer.cs
- OneWayBindingElementImporter.cs
- WindowsRebar.cs
- FileDialog_Vista.cs
- SiteMapHierarchicalDataSourceView.cs
- TypedMessageConverter.cs
- Helper.cs
- WindowHideOrCloseTracker.cs
- GridViewDeletedEventArgs.cs
- TypedTableBase.cs
- PageSetupDialog.cs
- TypeTypeConverter.cs
- ConstraintManager.cs
- XamlPathDataSerializer.cs
- HttpModuleCollection.cs
- PointHitTestParameters.cs
- DetailsViewUpdateEventArgs.cs
- SpeakProgressEventArgs.cs
- ArrangedElement.cs
- ViewgenGatekeeper.cs
- PeerApplication.cs
- CurrentChangedEventManager.cs
- RuntimeEnvironment.cs
- UnionCodeGroup.cs
- AudioFormatConverter.cs
- LOSFormatter.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- BooleanStorage.cs
- LinkUtilities.cs
- TypeDescriptionProvider.cs
- TreeViewImageIndexConverter.cs
- MenuItemBinding.cs
- SoapReflectionImporter.cs
- ObjectQuery_EntitySqlExtensions.cs
- DataTableReaderListener.cs