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
- FileUtil.cs
- MatrixTransform3D.cs
- RepeaterItem.cs
- RegexBoyerMoore.cs
- Label.cs
- CompositionTarget.cs
- Int16Converter.cs
- AppDomainAttributes.cs
- EdmType.cs
- WebCodeGenerator.cs
- ContentPosition.cs
- TypeLibConverter.cs
- PersonalizationStateQuery.cs
- Attributes.cs
- SafePEFileHandle.cs
- DataServiceException.cs
- ByteAnimationUsingKeyFrames.cs
- WindowsListViewGroup.cs
- IsolatedStorageFileStream.cs
- DrawingState.cs
- DiscoveryClient.cs
- ImageListImageEditor.cs
- Int64Converter.cs
- documentsequencetextview.cs
- XsltContext.cs
- SourceFileBuildProvider.cs
- BitmapEffectDrawing.cs
- SafeFileMapViewHandle.cs
- DataColumnMappingCollection.cs
- StylusButton.cs
- UpdatePanel.cs
- WpfSharedXamlSchemaContext.cs
- PersonalizablePropertyEntry.cs
- DependencyObject.cs
- CommandManager.cs
- ImageCollectionEditor.cs
- MultiView.cs
- ListViewInsertedEventArgs.cs
- IdentityManager.cs
- ByteStreamGeometryContext.cs
- AutoCompleteStringCollection.cs
- Triplet.cs
- RequestUriProcessor.cs
- EdmToObjectNamespaceMap.cs
- TextTreeFixupNode.cs
- InkSerializer.cs
- Resources.Designer.cs
- ToolStripStatusLabel.cs
- PagerSettings.cs
- SvcMapFile.cs
- ActivityPropertyReference.cs
- SQLSingle.cs
- QuotedPrintableStream.cs
- SafeCertificateContext.cs
- EventRecord.cs
- Label.cs
- followingquery.cs
- EntityContainerEntitySet.cs
- DateTimeConverter2.cs
- NavigationService.cs
- EntityDataSourceState.cs
- DataBoundControlHelper.cs
- RecommendedAsConfigurableAttribute.cs
- SchemaHelper.cs
- OdbcConnectionStringbuilder.cs
- SessionStateModule.cs
- RSAOAEPKeyExchangeFormatter.cs
- FontWeight.cs
- DynamicActivityXamlReader.cs
- ISAPIWorkerRequest.cs
- ChtmlCalendarAdapter.cs
- DbProviderFactoriesConfigurationHandler.cs
- TabItemWrapperAutomationPeer.cs
- XmlSerializerVersionAttribute.cs
- SizeLimitedCache.cs
- Crypto.cs
- Literal.cs
- ListViewUpdatedEventArgs.cs
- UserPreferenceChangedEventArgs.cs
- GlobalProxySelection.cs
- DbConnectionFactory.cs
- ClassHandlersStore.cs
- ListBoxChrome.cs
- TextFindEngine.cs
- HtmlLink.cs
- MenuItemBinding.cs
- MaskedTextProvider.cs
- CounterCreationDataCollection.cs
- DBConnection.cs
- BatchParser.cs
- DurationConverter.cs
- TextClipboardData.cs
- ComboBoxRenderer.cs
- StoreItemCollection.cs
- ClientViaElement.cs
- SqlSupersetValidator.cs
- RemotingConfiguration.cs
- ComEventsInfo.cs
- DataShape.cs
- WebPageTraceListener.cs