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
- InputBindingCollection.cs
- CompoundFileReference.cs
- DesignerDataRelationship.cs
- DataColumnMappingCollection.cs
- COM2IProvidePropertyBuilderHandler.cs
- XmlEntity.cs
- SwitchCase.cs
- ProcessRequestAsyncResult.cs
- PhysicalAddress.cs
- SchemaObjectWriter.cs
- BulletDecorator.cs
- XamlTypeMapper.cs
- DataGridToolTip.cs
- LoadWorkflowCommand.cs
- BlobPersonalizationState.cs
- _NativeSSPI.cs
- SubstitutionList.cs
- QueryCursorEventArgs.cs
- FileFormatException.cs
- SystemWebExtensionsSectionGroup.cs
- OdbcConnection.cs
- TextEditorTyping.cs
- HtmlInputHidden.cs
- Point3DCollectionConverter.cs
- TextTreeNode.cs
- NodeCounter.cs
- HasActivatableWorkflowEvent.cs
- ClientSponsor.cs
- CodeConditionStatement.cs
- wgx_render.cs
- ScriptControl.cs
- DataGridViewCellStyleConverter.cs
- RsaSecurityKey.cs
- ToolStripDropDownClosingEventArgs.cs
- HatchBrush.cs
- CodePropertyReferenceExpression.cs
- ObjectConverter.cs
- TabControlAutomationPeer.cs
- DataTemplate.cs
- Track.cs
- Int64.cs
- RequestResizeEvent.cs
- CodeDelegateCreateExpression.cs
- CacheVirtualItemsEvent.cs
- ListViewDataItem.cs
- CodeBlockBuilder.cs
- Cursor.cs
- XmlSiteMapProvider.cs
- CommandEventArgs.cs
- xmlformatgeneratorstatics.cs
- EventWaitHandleSecurity.cs
- InvalidPrinterException.cs
- MailSettingsSection.cs
- AssemblyAssociatedContentFileAttribute.cs
- TdsValueSetter.cs
- XmlWhitespace.cs
- FusionWrap.cs
- X509Chain.cs
- TimeoutHelper.cs
- MessageCredentialType.cs
- Constants.cs
- ValidationError.cs
- BaseCodeDomTreeGenerator.cs
- PrePostDescendentsWalker.cs
- ApplicationProxyInternal.cs
- ACL.cs
- WebSysDisplayNameAttribute.cs
- ListBindableAttribute.cs
- OdbcConnectionString.cs
- FactoryGenerator.cs
- OleDbFactory.cs
- EnvironmentPermission.cs
- NativeMethods.cs
- XmlSchemaAttributeGroupRef.cs
- LinearKeyFrames.cs
- MetricEntry.cs
- SessionIDManager.cs
- BitmapImage.cs
- ObjectParameter.cs
- COSERVERINFO.cs
- ExitEventArgs.cs
- OutOfProcStateClientManager.cs
- StackOverflowException.cs
- MessageSecurityProtocol.cs
- ArraySortHelper.cs
- TemplateComponentConnector.cs
- ProtocolViolationException.cs
- SequentialUshortCollection.cs
- BatchServiceHost.cs
- EntityCommandExecutionException.cs
- JavaScriptString.cs
- Calendar.cs
- SqlDeflator.cs
- ParserExtension.cs
- AndCondition.cs
- RequestSecurityToken.cs
- LoadItemsEventArgs.cs
- PropertyPanel.cs
- XmlWellformedWriter.cs
- HttpSessionStateWrapper.cs