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
- Matrix3DStack.cs
- DataObjectSettingDataEventArgs.cs
- TextParentUndoUnit.cs
- ComponentDesigner.cs
- DrawingContextDrawingContextWalker.cs
- RelationshipEndMember.cs
- GridViewDeletedEventArgs.cs
- ConfigUtil.cs
- XsdDateTime.cs
- ThreadExceptionDialog.cs
- LineVisual.cs
- EventToken.cs
- BulletedListEventArgs.cs
- ToolboxDataAttribute.cs
- TemplatedMailWebEventProvider.cs
- DefaultPrintController.cs
- RewritingPass.cs
- MimeTypeAttribute.cs
- ReferencedAssemblyResolver.cs
- TableChangeProcessor.cs
- DbMetaDataColumnNames.cs
- PolicyLevel.cs
- figurelengthconverter.cs
- XD.cs
- SQLBinaryStorage.cs
- TextContainerHelper.cs
- GridViewDeletedEventArgs.cs
- ValidationRule.cs
- InkPresenterAutomationPeer.cs
- SamlAssertionKeyIdentifierClause.cs
- OutputCacheSection.cs
- CompoundFileStorageReference.cs
- VectorKeyFrameCollection.cs
- Verify.cs
- DragDeltaEventArgs.cs
- LinqDataSourceEditData.cs
- JsonGlobals.cs
- RadioButtonRenderer.cs
- DocumentViewerBase.cs
- TypeUtil.cs
- sqlstateclientmanager.cs
- PersistenceTypeAttribute.cs
- ProfileBuildProvider.cs
- Method.cs
- SoapIncludeAttribute.cs
- CompilerParameters.cs
- DESCryptoServiceProvider.cs
- input.cs
- ProcessThreadDesigner.cs
- CreateBookmarkScope.cs
- SqlBulkCopyColumnMapping.cs
- ErrorLog.cs
- IPeerNeighbor.cs
- HttpResponseInternalBase.cs
- UseLicense.cs
- SqlParameterCollection.cs
- CompositeFontFamily.cs
- CustomPopupPlacement.cs
- UnsupportedPolicyOptionsException.cs
- SessionStateContainer.cs
- DeclarativeCatalogPart.cs
- ReferenceTypeElement.cs
- MediaElement.cs
- Context.cs
- StylusPlugInCollection.cs
- Win32.cs
- XmlEntityReference.cs
- ExeConfigurationFileMap.cs
- KnownColorTable.cs
- SecurityDescriptor.cs
- GraphicsContext.cs
- DropShadowEffect.cs
- DefaultObjectMappingItemCollection.cs
- PrintPreviewControl.cs
- ToolStripDropDownButton.cs
- DataGridViewCellValueEventArgs.cs
- InfiniteIntConverter.cs
- WindowsGraphics.cs
- BooleanFacetDescriptionElement.cs
- BeginSelectCardRequest.cs
- TypeValidationEventArgs.cs
- XmlElementCollection.cs
- XPathNodeIterator.cs
- WebResourceAttribute.cs
- SqlConnectionHelper.cs
- TabletDevice.cs
- DefaultObjectMappingItemCollection.cs
- SiteIdentityPermission.cs
- EntityDataSourceUtil.cs
- ProvidePropertyAttribute.cs
- EventLogger.cs
- HandlerBase.cs
- COM2IDispatchConverter.cs
- HttpResponseBase.cs
- NotifyIcon.cs
- ViewLoader.cs
- DateTimeConverter2.cs
- Set.cs
- ToolStripDropDown.cs
- DataGridPageChangedEventArgs.cs