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
- StrokeCollectionDefaultValueFactory.cs
- Underline.cs
- FocusManager.cs
- XmlSchemaComplexContent.cs
- ResourceIDHelper.cs
- SiteMapNodeCollection.cs
- TransformCollection.cs
- DoubleLink.cs
- SimpleTypeResolver.cs
- XmlSchemaGroup.cs
- SystemMulticastIPAddressInformation.cs
- ProcessModule.cs
- ListViewTableRow.cs
- SendingRequestEventArgs.cs
- TimerElapsedEvenArgs.cs
- MobileCapabilities.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- RequiredFieldValidator.cs
- InvokePatternIdentifiers.cs
- EllipseGeometry.cs
- CircleHotSpot.cs
- TdsParserHelperClasses.cs
- SequenceFullException.cs
- DocumentAutomationPeer.cs
- ClientTargetCollection.cs
- SemaphoreSlim.cs
- DataErrorValidationRule.cs
- AspProxy.cs
- InvokeProviderWrapper.cs
- DesignBindingPicker.cs
- SqlMethodCallConverter.cs
- MemoryFailPoint.cs
- NonParentingControl.cs
- Int64Storage.cs
- SqlCommand.cs
- IsolatedStorageException.cs
- BypassElement.cs
- ParenExpr.cs
- MetabaseReader.cs
- GridViewItemAutomationPeer.cs
- ExplicitDiscriminatorMap.cs
- PresentationSource.cs
- FormatSettings.cs
- PackWebRequestFactory.cs
- XamlStream.cs
- CodeCommentStatement.cs
- FileUtil.cs
- ContactManager.cs
- DataErrorValidationRule.cs
- mil_commands.cs
- RowToParametersTransformer.cs
- AppDomainShutdownMonitor.cs
- WSTrustFeb2005.cs
- RC2.cs
- fixedPageContentExtractor.cs
- DesignerActionListCollection.cs
- ReadOnlyDataSource.cs
- NumberFunctions.cs
- EdmRelationshipRoleAttribute.cs
- ToolBarButton.cs
- MimeBasePart.cs
- HScrollProperties.cs
- ConversionContext.cs
- XmlSchemaObjectTable.cs
- ByeOperationCD1AsyncResult.cs
- ParentUndoUnit.cs
- MethodExpression.cs
- PenLineJoinValidation.cs
- _NestedMultipleAsyncResult.cs
- DataColumnPropertyDescriptor.cs
- SessionStateUtil.cs
- InvokeGenerator.cs
- AuthorizationRule.cs
- LifetimeManager.cs
- BamlMapTable.cs
- EventLogPermissionEntryCollection.cs
- ControlDesigner.cs
- DataProtection.cs
- HostVisual.cs
- ThicknessKeyFrameCollection.cs
- InnerItemCollectionView.cs
- MiniAssembly.cs
- HostingPreferredMapPath.cs
- SymmetricCryptoHandle.cs
- WebBrowserDesigner.cs
- IntersectQueryOperator.cs
- ToReply.cs
- AspNetHostingPermission.cs
- DataGridViewControlCollection.cs
- PowerStatus.cs
- TypeToken.cs
- __Filters.cs
- ExpressionBuilderCollection.cs
- CollectionsUtil.cs
- SQLCharsStorage.cs
- TreeWalkHelper.cs
- AxisAngleRotation3D.cs
- EventSource.cs
- Preprocessor.cs
- WinFormsUtils.cs