Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- OpCellTreeNode.cs
- SafeNativeMethods.cs
- BaseDataBoundControl.cs
- TraceSource.cs
- TimeSpanStorage.cs
- updateconfighost.cs
- WebPartEditVerb.cs
- ForEachAction.cs
- GridViewColumnCollectionChangedEventArgs.cs
- BamlCollectionHolder.cs
- SrgsDocumentParser.cs
- AudioSignalProblemOccurredEventArgs.cs
- PeerNameResolver.cs
- SqlConnectionFactory.cs
- IntegerFacetDescriptionElement.cs
- XmlAnyElementAttributes.cs
- TransactionScope.cs
- ChildrenQuery.cs
- CapacityStreamGeometryContext.cs
- Adorner.cs
- IpcServerChannel.cs
- ConnectionStringSettings.cs
- BitSet.cs
- DesignerLoader.cs
- RadioButtonBaseAdapter.cs
- SurrogateDataContract.cs
- CopyNodeSetAction.cs
- UpdateCommand.cs
- EdmScalarPropertyAttribute.cs
- GridView.cs
- DebugHandleTracker.cs
- HostSecurityManager.cs
- Part.cs
- NativeMethods.cs
- ProvidePropertyAttribute.cs
- WebPartConnectionsEventArgs.cs
- DocumentOrderQuery.cs
- ContractDescription.cs
- SettingsSection.cs
- EntityParameterCollection.cs
- Vector3DValueSerializer.cs
- FileUpload.cs
- LoadedOrUnloadedOperation.cs
- PcmConverter.cs
- SecurityPermission.cs
- ArrayList.cs
- DynamicValidator.cs
- HttpChannelBindingToken.cs
- CancelEventArgs.cs
- Win32.cs
- SimpleMailWebEventProvider.cs
- RelatedView.cs
- AuthorizationSection.cs
- Comparer.cs
- Clock.cs
- DetailsViewModeEventArgs.cs
- GeneratedView.cs
- SocketAddress.cs
- UserUseLicenseDictionaryLoader.cs
- AbandonedMutexException.cs
- FileCodeGroup.cs
- MdiWindowListStrip.cs
- XPathNodeInfoAtom.cs
- LinkClickEvent.cs
- CompiledQueryCacheEntry.cs
- WindowsSlider.cs
- DataRecordInfo.cs
- KeyboardEventArgs.cs
- ProxyWebPartConnectionCollection.cs
- CaseStatementProjectedSlot.cs
- Permission.cs
- DataServiceQuery.cs
- MsmqIntegrationElement.cs
- StylusPointProperty.cs
- AddressAccessDeniedException.cs
- Transform3DGroup.cs
- RadialGradientBrush.cs
- RuntimeCompatibilityAttribute.cs
- WebPartConnectionsConfigureVerb.cs
- XmlBoundElement.cs
- Assembly.cs
- ThreadAttributes.cs
- PathData.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- WinCategoryAttribute.cs
- TableChangeProcessor.cs
- MemberDomainMap.cs
- RealProxy.cs
- DBSqlParserColumn.cs
- DataMemberListEditor.cs
- LineMetrics.cs
- OleDbDataAdapter.cs
- TextEditorMouse.cs
- NativeObjectSecurity.cs
- mactripleDES.cs
- DictationGrammar.cs
- RegexRunnerFactory.cs
- SettingsBindableAttribute.cs
- SQLString.cs
- HealthMonitoringSectionHelper.cs