Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UrlPath.cs
- Hex.cs
- TypeSource.cs
- ValueQuery.cs
- Rotation3D.cs
- SwitchCase.cs
- ConfigurationSectionCollection.cs
- AccessDataSource.cs
- HeaderLabel.cs
- Int16AnimationBase.cs
- EntityClientCacheEntry.cs
- SystemDiagnosticsSection.cs
- ContextInformation.cs
- TextRunProperties.cs
- Error.cs
- ExceptionUtil.cs
- ScalarConstant.cs
- StylusDownEventArgs.cs
- Base64Encoder.cs
- OrderedDictionaryStateHelper.cs
- HtmlControlPersistable.cs
- TextSelection.cs
- BitmapMetadata.cs
- StyleHelper.cs
- XmlDocumentFragment.cs
- diagnosticsswitches.cs
- SHA512Managed.cs
- OdbcConnectionOpen.cs
- SessionPageStateSection.cs
- DelegateSerializationHolder.cs
- ExtentJoinTreeNode.cs
- ShellProvider.cs
- MaskDesignerDialog.cs
- NullableDoubleAverageAggregationOperator.cs
- CaseKeyBox.xaml.cs
- ListBox.cs
- CodeExporter.cs
- BookmarkEventArgs.cs
- CompiledRegexRunner.cs
- SplashScreenNativeMethods.cs
- CollectionMarkupSerializer.cs
- ListViewDataItem.cs
- CodeEntryPointMethod.cs
- MemberDomainMap.cs
- TypeRestriction.cs
- ObjectComplexPropertyMapping.cs
- DataServiceRequestArgs.cs
- ExtendedPropertyCollection.cs
- SafeArrayTypeMismatchException.cs
- embossbitmapeffect.cs
- __FastResourceComparer.cs
- DataControlPagerLinkButton.cs
- OutgoingWebResponseContext.cs
- CompositeCollectionView.cs
- VisualTreeUtils.cs
- SafeCryptContextHandle.cs
- HandlerFactoryWrapper.cs
- HttpConfigurationContext.cs
- ELinqQueryState.cs
- SafeCertificateStore.cs
- TransportSecurityHelpers.cs
- SelectionChangedEventArgs.cs
- FlowLayout.cs
- XmlLoader.cs
- Decoder.cs
- SafeNativeMethods.cs
- PackWebRequestFactory.cs
- Unit.cs
- Parser.cs
- ToolboxDataAttribute.cs
- ScrollBarRenderer.cs
- GrammarBuilderRuleRef.cs
- Relationship.cs
- XmlStringTable.cs
- AutoScrollHelper.cs
- SortFieldComparer.cs
- FastEncoder.cs
- PointAnimationBase.cs
- ImmutableCollection.cs
- InputScopeConverter.cs
- MenuItem.cs
- NumberSubstitution.cs
- RuntimeConfig.cs
- TickBar.cs
- Setter.cs
- EasingQuaternionKeyFrame.cs
- XsdDateTime.cs
- ResXResourceSet.cs
- DoubleUtil.cs
- TypeInfo.cs
- RemoteWebConfigurationHost.cs
- ComplexPropertyEntry.cs
- WebPartManager.cs
- CapabilitiesUse.cs
- HostingPreferredMapPath.cs
- WindowsListViewGroup.cs
- Screen.cs
- PackageRelationshipCollection.cs
- TemplatedAdorner.cs
- TimeStampChecker.cs