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
- WebPermission.cs
- TypeUtils.cs
- FunctionQuery.cs
- HtmlTextArea.cs
- SharedPersonalizationStateInfo.cs
- WebSysDisplayNameAttribute.cs
- EntityDataSourceConfigureObjectContext.cs
- UnsafeNativeMethods.cs
- WinEventHandler.cs
- TextEditorTables.cs
- Int64AnimationUsingKeyFrames.cs
- CheckBox.cs
- BypassElement.cs
- TreeNodeClickEventArgs.cs
- SqlServices.cs
- AdornerPresentationContext.cs
- unsafeIndexingFilterStream.cs
- MdiWindowListItemConverter.cs
- ValidationError.cs
- RightNameExpirationInfoPair.cs
- TypeSystem.cs
- SignatureHelper.cs
- DateTimeConverter.cs
- DictionaryChange.cs
- TextMetrics.cs
- DesignTable.cs
- TextTreeText.cs
- _ShellExpression.cs
- Literal.cs
- Process.cs
- SqlRowUpdatingEvent.cs
- SqlCacheDependencyDatabaseCollection.cs
- WebControlAdapter.cs
- QuadraticBezierSegment.cs
- LinkTarget.cs
- GridViewColumnHeader.cs
- SymDocumentType.cs
- _Rfc2616CacheValidators.cs
- FlowLayoutSettings.cs
- TargetConverter.cs
- ProviderBase.cs
- ClientBase.cs
- ColorBlend.cs
- SafeNativeMethodsMilCoreApi.cs
- ButtonBase.cs
- OdbcHandle.cs
- CriticalFileToken.cs
- SafeNativeMethodsOther.cs
- SourceCollection.cs
- MouseGestureConverter.cs
- HtmlControlPersistable.cs
- BamlTreeNode.cs
- PasswordPropertyTextAttribute.cs
- PropertyDescriptorGridEntry.cs
- TaskSchedulerException.cs
- CharUnicodeInfo.cs
- Baml6ConstructorInfo.cs
- PkcsMisc.cs
- Brushes.cs
- EntityContainer.cs
- AesManaged.cs
- UseAttributeSetsAction.cs
- Int32CAMarshaler.cs
- UITypeEditor.cs
- ListControlDataBindingHandler.cs
- HitTestFilterBehavior.cs
- QilGenerator.cs
- MediaPlayerState.cs
- SettingsSection.cs
- WindowsGraphicsWrapper.cs
- CursorConverter.cs
- HttpHandlersSection.cs
- PipelineComponent.cs
- PopupRoot.cs
- WorkflowOperationAsyncResult.cs
- BamlRecordWriter.cs
- RadioButtonAutomationPeer.cs
- CryptoApi.cs
- CacheAxisQuery.cs
- AutomationElementCollection.cs
- TransformationRules.cs
- DataServiceQueryProvider.cs
- IFlowDocumentViewer.cs
- Int32AnimationBase.cs
- ToolStripTextBox.cs
- DataViewListener.cs
- PageFunction.cs
- ProtocolsConfigurationEntry.cs
- Image.cs
- InheritanceAttribute.cs
- ExpressionBuilder.cs
- Visual3D.cs
- PasswordTextContainer.cs
- MemberDomainMap.cs
- GeneratedCodeAttribute.cs
- SafePointer.cs
- Oci.cs
- TreeViewEvent.cs
- ThreadInterruptedException.cs
- ReflectionPermission.cs