Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- UpDownBaseDesigner.cs
- smtpconnection.cs
- PathSegmentCollection.cs
- XMLSyntaxException.cs
- VectorAnimationBase.cs
- AlignmentYValidation.cs
- TextLineResult.cs
- cookiecollection.cs
- ExpressionConverter.cs
- UserPreferenceChangingEventArgs.cs
- PresentationTraceSources.cs
- ValidationEventArgs.cs
- ParagraphResult.cs
- PlaceHolder.cs
- TextPattern.cs
- PointLightBase.cs
- WindowsListView.cs
- HttpResponseMessageProperty.cs
- BindingValueChangedEventArgs.cs
- DataReceivedEventArgs.cs
- CommonProperties.cs
- MustUnderstandSoapException.cs
- ListInitExpression.cs
- ResourceAttributes.cs
- SocketElement.cs
- OracleConnectionStringBuilder.cs
- ColorBlend.cs
- EdmItemError.cs
- Geometry.cs
- RewritingValidator.cs
- BindableAttribute.cs
- Propagator.JoinPropagator.cs
- InfoCardUIAgent.cs
- NamedPipeProcessProtocolHandler.cs
- SettingsProviderCollection.cs
- InputDevice.cs
- LiteralTextParser.cs
- FontStretchConverter.cs
- ListControlConvertEventArgs.cs
- MetadataSource.cs
- XmlSchemaValidationException.cs
- VersionedStream.cs
- Emitter.cs
- TimeStampChecker.cs
- ElementHost.cs
- DataGridState.cs
- BufferModesCollection.cs
- SafeReadContext.cs
- TextCharacters.cs
- XmlnsCache.cs
- XPathAncestorQuery.cs
- ToolBarButtonClickEvent.cs
- UnaryNode.cs
- MulticastOption.cs
- Viewport2DVisual3D.cs
- IdentityReference.cs
- WebPartAuthorizationEventArgs.cs
- UndoManager.cs
- UnionExpr.cs
- ConfigurationUtility.cs
- XmlBinaryReader.cs
- Operator.cs
- SourceSwitch.cs
- PreviewKeyDownEventArgs.cs
- RowToParametersTransformer.cs
- StrokeNodeEnumerator.cs
- DirectoryObjectSecurity.cs
- TypeDescriptionProvider.cs
- VectorAnimationUsingKeyFrames.cs
- UrlParameterWriter.cs
- COM2Properties.cs
- WorkflowInstanceRecord.cs
- XhtmlBasicObjectListAdapter.cs
- DigitShape.cs
- Attribute.cs
- EntityClientCacheEntry.cs
- ControlAdapter.cs
- RegexCharClass.cs
- CurrencyWrapper.cs
- PageThemeParser.cs
- PackWebRequestFactory.cs
- SafeBuffer.cs
- DiagnosticTraceSource.cs
- XsltArgumentList.cs
- OdbcStatementHandle.cs
- SqlCommandBuilder.cs
- MasterPageCodeDomTreeGenerator.cs
- DefaultDialogButtons.cs
- JapaneseLunisolarCalendar.cs
- CodeDelegateCreateExpression.cs
- ProcessHostConfigUtils.cs
- AlphabetConverter.cs
- ScrollViewerAutomationPeer.cs
- DataTableExtensions.cs
- UrlRoutingHandler.cs
- WebPartDisplayModeCancelEventArgs.cs
- CompositionTarget.cs
- SpotLight.cs
- ProfileSettingsCollection.cs
- CustomAttributeSerializer.cs