Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DynamicExpression.cs
- InputScope.cs
- DataFormats.cs
- DetailsViewDeleteEventArgs.cs
- FSWPathEditor.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- Events.cs
- ConnectionsZone.cs
- StylusPointPropertyUnit.cs
- _KerberosClient.cs
- StringSource.cs
- SystemWebExtensionsSectionGroup.cs
- FormViewRow.cs
- XmlDigitalSignatureProcessor.cs
- Point3DAnimation.cs
- SmtpLoginAuthenticationModule.cs
- LineProperties.cs
- RequestNavigateEventArgs.cs
- ImageField.cs
- EventDescriptor.cs
- DescendentsWalkerBase.cs
- MaxSessionCountExceededException.cs
- ToolboxItemCollection.cs
- ChooseAction.cs
- SingleStorage.cs
- RightsManagementEncryptionTransform.cs
- DataTableTypeConverter.cs
- StylusSystemGestureEventArgs.cs
- ErrorWebPart.cs
- RoleBoolean.cs
- UnsafeNativeMethods.cs
- SafeFileMappingHandle.cs
- ExplicitDiscriminatorMap.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Trace.cs
- LinkAreaEditor.cs
- IndentTextWriter.cs
- TempEnvironment.cs
- RegexInterpreter.cs
- FamilyTypeface.cs
- ImageIndexConverter.cs
- Int16.cs
- DataBindingValueUIHandler.cs
- LogLogRecord.cs
- ProcessStartInfo.cs
- ZoneIdentityPermission.cs
- M3DUtil.cs
- ProgressPage.cs
- _LazyAsyncResult.cs
- iisPickupDirectory.cs
- Fault.cs
- AnnouncementInnerClient11.cs
- AesManaged.cs
- JsonSerializer.cs
- RectKeyFrameCollection.cs
- CodeValidator.cs
- ProcessModelSection.cs
- xmlformatgeneratorstatics.cs
- StorageScalarPropertyMapping.cs
- SeverityFilter.cs
- Marshal.cs
- RotateTransform3D.cs
- DoubleCollectionValueSerializer.cs
- ReflectPropertyDescriptor.cs
- DataReaderContainer.cs
- RepeatInfo.cs
- XmlSchemaObject.cs
- SafePEFileHandle.cs
- InternalControlCollection.cs
- Attachment.cs
- XmlSchemaObject.cs
- DesignerActionMethodItem.cs
- DesigntimeLicenseContextSerializer.cs
- AnnotationMap.cs
- WindowsImpersonationContext.cs
- ISAPIRuntime.cs
- AlphabeticalEnumConverter.cs
- QuadraticBezierSegment.cs
- ProxyGenerator.cs
- AsynchronousChannelMergeEnumerator.cs
- followingquery.cs
- ListParagraph.cs
- ArraySegment.cs
- OutputCacheSettingsSection.cs
- DeclaredTypeElement.cs
- TextWriterEngine.cs
- x509utils.cs
- WebPartCloseVerb.cs
- MetadataArtifactLoader.cs
- PopOutPanel.cs
- TemplatePartAttribute.cs
- BitmapMetadataEnumerator.cs
- LogicalTreeHelper.cs
- Int32CollectionConverter.cs
- AuthenticationModuleElementCollection.cs
- SqlRemoveConstantOrderBy.cs
- FrameAutomationPeer.cs
- TitleStyle.cs
- StringUtil.cs
- BinaryUtilClasses.cs