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
- LockCookie.cs
- ConfigXmlText.cs
- StickyNote.cs
- ToolStripSeparator.cs
- EntityRecordInfo.cs
- BooleanAnimationBase.cs
- PeerApplication.cs
- Vector.cs
- Cursor.cs
- AsyncOperationManager.cs
- CurrentChangedEventManager.cs
- TranslateTransform.cs
- TypeInitializationException.cs
- Drawing.cs
- Int32Collection.cs
- AttachInfo.cs
- ContextDataSourceView.cs
- QuerySelectOp.cs
- FactoryMaker.cs
- columnmapfactory.cs
- PermissionRequestEvidence.cs
- VerbConverter.cs
- ToolboxItemCollection.cs
- RemoteWebConfigurationHost.cs
- SettingsPropertyWrongTypeException.cs
- DataGridViewDataConnection.cs
- ProtocolsConfigurationHandler.cs
- TableRowCollection.cs
- DesignerView.xaml.cs
- Selector.cs
- BitmapImage.cs
- X509Utils.cs
- PublisherIdentityPermission.cs
- SaveFileDialog.cs
- translator.cs
- InstanceDataCollectionCollection.cs
- AesCryptoServiceProvider.cs
- FileDialogPermission.cs
- PackageDocument.cs
- ExpressionVisitor.cs
- Process.cs
- AssociationType.cs
- SHA1Managed.cs
- AnchorEditor.cs
- GPPOINT.cs
- Int64AnimationUsingKeyFrames.cs
- XDRSchema.cs
- Operators.cs
- WebPartTransformerAttribute.cs
- KeyValueInternalCollection.cs
- DrawingVisualDrawingContext.cs
- RangeValidator.cs
- Selector.cs
- TargetFrameworkUtil.cs
- shaper.cs
- DataGridViewRowHeaderCell.cs
- ContainerVisual.cs
- CapabilitiesState.cs
- CompilerError.cs
- BamlRecordHelper.cs
- XPathCompiler.cs
- DataGridViewCheckBoxCell.cs
- PropertiesTab.cs
- ArgIterator.cs
- ModuleElement.cs
- AssemblyCache.cs
- RecordManager.cs
- FileLoadException.cs
- WinEventTracker.cs
- EntryPointNotFoundException.cs
- SymbolDocumentInfo.cs
- ProviderMetadata.cs
- DataSpaceManager.cs
- UnsafeNativeMethods.cs
- XPathArrayIterator.cs
- SqlBooleanizer.cs
- UndoManager.cs
- EventHandlersStore.cs
- MessageQueueKey.cs
- TraceEventCache.cs
- HiddenFieldPageStatePersister.cs
- SimpleType.cs
- UIElementCollection.cs
- PartitionResolver.cs
- DBSqlParserTableCollection.cs
- RotateTransform3D.cs
- ListViewSortEventArgs.cs
- SByte.cs
- DataGridViewTopRowAccessibleObject.cs
- SerialStream.cs
- XmlSchemaImporter.cs
- SymmetricKey.cs
- Point3DCollection.cs
- DeclaredTypeValidator.cs
- BitArray.cs
- BlurEffect.cs
- TraceProvider.cs
- UpDownBase.cs
- TypeListConverter.cs
- GridViewItemAutomationPeer.cs