Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / UIAutomationTypes / System / Windows / Automation / TextPatternIdentifiers.cs / 1 / TextPatternIdentifiers.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Automation Identifiers for Text pattern // // History: // 04/15/2005 : [....] Added // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Security.Permissions; using System.Runtime.InteropServices; using MS.Internal.Automation; namespace System.Windows.Automation { ////// SupportedTextSelection indicates whether the document /// support simple single-span selection, multiple selections, /// or no selection. /// [Flags] [ComVisible(true)] [Guid("3d9e3d8f-bfb0-484f-84ab-93ff4280cbc4")] #if (NO_INTERNAL_COMPILE_BUG1080665) internal enum SupportedTextSelection #else public enum SupportedTextSelection #endif { ///None. None = 0, ///Single. Single = 1, ///Multiple. Multiple = 2, } ////// Purpose: /// The TextPattern object is what you get back when you ask an element for text pattern. /// Example usages: /// It is the Interface that represents text like an edit control. This pretty /// much means any UI elements that contain text. /// #if (INTERNAL_COMPILE) internal static class TextPatternIdentifiers #else public static class TextPatternIdentifiers #endif { //----------------------------------------------------- // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields ////// Indicates that a text attribute varies over a range. /// public static readonly object MixedAttributeValue = UiaCoreTypesApi.UiaGetReservedMixedAttributeValue(); #region TextAttribute // IMPORTANT: if you add or remove AutomationTextAttributes be sure to make the corresponding changes in // AutomationComInteropProvider.cs' AutomationConstants struct and AutomationComInteropProvider.InitializeConstants. ///Type of animation applied from AnimationStyle enum. public static readonly AutomationTextAttribute AnimationStyleAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_AnimationStyle_Attribute, "TextPatternIdentifiers.AnimationStyleAttribute"); ///Background color as a 32-bit Win32 COLORREF. public static readonly AutomationTextAttribute BackgroundColorAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_BackgroundColor_Attribute, "TextPatternIdentifiers.BackgroundColorAttribute"); ///Bullet style from BulletStyle enum. public static readonly AutomationTextAttribute BulletStyleAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_BulletStyle_Attribute, "TextPatternIdentifiers.BulletStyleAttribute"); ///Cap style from CapStyle enum. public static readonly AutomationTextAttribute CapStyleAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_CapStyle_Attribute, "TextPatternIdentifiers.CapStyleAttribute"); ///CultureInfo of the character down to sub-language level, e.g. Swiss French instead of French. See the CultureInfo in /// .NET Framework for more detail on the language code format. Clients should note that there may be many cases where the /// Language of the character defaults to application UI language because many servers do not support language tag and, /// even when supported, authors may not use it. public static readonly AutomationTextAttribute CultureAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_Culture_Attribute, "TextPatternIdentifiers.CultureAttribute"); ///Non-localized string that represents font face in TrueType. Providers can supply their own. /// Examples include �Arial Black� and �Arial Narrow�. public static readonly AutomationTextAttribute FontNameAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_FontName_Attribute, "TextPatternIdentifiers.FontNameAttribute"); ///Point size of the character as a double. public static readonly AutomationTextAttribute FontSizeAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_FontSize_Attribute, "TextPatternIdentifiers.FontSizeAttribute"); ///Thickness of font as an int. This is modeled after the lfWeight field in GDI LOGFONT. For consistency, the following values /// have been adopted from LOGFONT:0=DontCare, 100=Thin, 200=ExtraLight or UltraLight, 300=Light, 400=Normal or Regular, /// 500=Medium, 600=SemiBold or DemiBold, 700=Bold, 800=ExtraBold or UltraBold, and 900=Heavy or Black. public static readonly AutomationTextAttribute FontWeightAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_FontWeight_Attribute, "TextPatternIdentifiers.FontWeightAttribute"); ///Color of the text as a 32-bit Win32 COLORREF. public static readonly AutomationTextAttribute ForegroundColorAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_ForegroundColor_Attribute, "TextPatternIdentifiers.ForegroundColorAttribute"); ///Horizontal alignment from HorizontalTextAlignment enum. public static readonly AutomationTextAttribute HorizontalTextAlignmentAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_HorizontalTextAlignment_Attribute, "TextPatternIdentifiers.HorizontalTextAlignmentAttribute"); ///First-line indentation in points as a double. public static readonly AutomationTextAttribute IndentationFirstLineAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IndentationFirstLine_Attribute, "TextPatternIdentifiers.IndentationFirstLineAttribute"); ///Leading indentation in points as a double. public static readonly AutomationTextAttribute IndentationLeadingAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IndentationLeading_Attribute, "TextPatternIdentifiers.IndentationLeadingAttribute"); ///Trailing indentation in points as a double. public static readonly AutomationTextAttribute IndentationTrailingAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IndentationTrailing_Attribute, "TextPatternIdentifiers.IndentationTrailingAttribute"); ///Is the text hidden? Boolean. public static readonly AutomationTextAttribute IsHiddenAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IsHidden_Attribute, "TextPatternIdentifiers.IsHiddenAttribute"); ///Is the character italicized? Boolean. public static readonly AutomationTextAttribute IsItalicAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IsItalic_Attribute, "TextPatternIdentifiers.IsItalicAttribute"); ///Is the character read-only? If a document/file is read-only, but you can still edit it and save it as another file, /// the text inside is considered not read-only. Boolean. public static readonly AutomationTextAttribute IsReadOnlyAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IsReadOnly_Attribute, "TextPatternIdentifiers.IsReadOnlyAttribute"); ///Is the character a sub-script? Boolean. public static readonly AutomationTextAttribute IsSubscriptAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IsSubscript_Attribute, "TextPatternIdentifiers.IsSubscriptAttribute"); ///Is the character a super-script? Boolean. public static readonly AutomationTextAttribute IsSuperscriptAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IsSuperscript_Attribute, "TextPatternIdentifiers.IsSuperscriptAttribute"); ///Bottom margin in points as a double. public static readonly AutomationTextAttribute MarginBottomAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_MarginBottom_Attribute, "TextPatternIdentifiers.MarginBottomAttribute"); ///Leading margin in points as a double. public static readonly AutomationTextAttribute MarginLeadingAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_MarginLeading_Attribute, "TextPatternIdentifiers.MarginLeadingAttribute"); ///Top margin in points as a double. public static readonly AutomationTextAttribute MarginTopAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_MarginTop_Attribute, "TextPatternIdentifiers.MarginTopAttribute"); ///Trailing margin in points as a double. public static readonly AutomationTextAttribute MarginTrailingAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_MarginTrailing_Attribute, "TextPatternIdentifiers.MarginTrailingAttribute"); ///Outline style from OutlineStyles enum. public static readonly AutomationTextAttribute OutlineStylesAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_OutlineStyles_Attribute, "TextPatternIdentifiers.OutlineStylesAttribute"); ///Color of the overline as a Win32 COLORREF. This attribute may not be available if the color is /// always the same as the foreground color. public static readonly AutomationTextAttribute OverlineColorAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_OverlineColor_Attribute, "TextPatternIdentifiers.OverlineColorAttribute"); ///Overline style from TextDecorationLineStyle enum. public static readonly AutomationTextAttribute OverlineStyleAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_OverlineStyle_Attribute, "TextPatternIdentifiers.OverlineStyleAttribute"); ///Color of the strikethrough as a Win32 COLORREF. This attribute may not be available if the color is /// always the same as the foreground color. public static readonly AutomationTextAttribute StrikethroughColorAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_StrikethroughColor_Attribute, "TextPatternIdentifiers.StrikethroughColorAttribute"); ///Strikethrough style from TextDecorationLineStyle enum. public static readonly AutomationTextAttribute StrikethroughStyleAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_StrikethroughStyle_Attribute, "TextPatternIdentifiers.StrikethroughStyleAttribute"); ///The set of tabs in points relative to the leading margin. Array of double. public static readonly AutomationTextAttribute TabsAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_Tabs_Attribute, "TextPatternIdentifiers.TabsAttribute"); ///Text flow direction from FlowDirection flags enum. public static readonly AutomationTextAttribute TextFlowDirectionsAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_FlowDirections_Attribute, "TextPatternIdentifiers.TextFlowDirectionsAttribute"); ///Color of the underline as a Win32 COLORREF. This attribute may not be available if the color is /// always the same as the foreground color. public static readonly AutomationTextAttribute UnderlineColorAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_UnderlineColor_Attribute, "TextPatternIdentifiers.UnderlineColorAttribute"); ///Underline style from TextDecorationLineStyle enum. public static readonly AutomationTextAttribute UnderlineStyleAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_UnderlineStyle_Attribute, "TextPatternIdentifiers.UnderlineStyleAttribute"); #endregion TextAttribute #region Patterns & Events ///Text pattern public static readonly AutomationPattern Pattern = AutomationPattern.Register(AutomationIdentifierGuids.Text_Pattern, "TextPatternIdentifiers.Pattern"); ////// Event ID: TextSelectionChangedEvent /// When: Sent to the event handler when the selection changes. /// public static readonly AutomationEvent TextSelectionChangedEvent = AutomationEvent.Register(AutomationIdentifierGuids.Text_TextSelectionChanged_Event, "TextPatternIdentifiers.TextSelectionChangedEvent"); ////// Event ID: TextChangedEvent /// When: Sent to the event handler when text changes. /// public static readonly AutomationEvent TextChangedEvent = AutomationEvent.Register(AutomationIdentifierGuids.Text_TextChanged_Event, "TextPatternIdentifiers.TextChangedEvent"); #endregion Patterns & Events #endregion Public Constants and Readonly 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
- CqlGenerator.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SqlTopReducer.cs
- AppDomainManager.cs
- DBBindings.cs
- OuterGlowBitmapEffect.cs
- InputLanguage.cs
- MessagingDescriptionAttribute.cs
- DataGridPagerStyle.cs
- TextRangeProviderWrapper.cs
- RegexWorker.cs
- HtmlHistory.cs
- DefaultAsyncDataDispatcher.cs
- RangeEnumerable.cs
- TextRangeSerialization.cs
- CancellationHandler.cs
- RawKeyboardInputReport.cs
- TextSearch.cs
- LedgerEntryCollection.cs
- GridViewUpdateEventArgs.cs
- SafeArrayTypeMismatchException.cs
- MetabaseReader.cs
- MessageContractMemberAttribute.cs
- DecodeHelper.cs
- UndoEngine.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DataGridViewLinkCell.cs
- LabelAutomationPeer.cs
- AspNetSynchronizationContext.cs
- Utils.cs
- RenderDataDrawingContext.cs
- TCPClient.cs
- DetailsViewAutoFormat.cs
- GenerateScriptTypeAttribute.cs
- XmlEntityReference.cs
- TableStyle.cs
- DBDataPermissionAttribute.cs
- UserNameSecurityTokenAuthenticator.cs
- AttributeSetAction.cs
- Vector3DAnimation.cs
- Rijndael.cs
- Lock.cs
- JpegBitmapEncoder.cs
- WindowShowOrOpenTracker.cs
- ObjectDataSourceStatusEventArgs.cs
- FrameworkContentElement.cs
- coordinatorscratchpad.cs
- ConfigurationLockCollection.cs
- FloaterParagraph.cs
- XmlQualifiedName.cs
- RawContentTypeMapper.cs
- OleDbConnectionFactory.cs
- EdmPropertyAttribute.cs
- HorizontalAlignConverter.cs
- Timeline.cs
- UserControlParser.cs
- Color.cs
- SqlTransaction.cs
- ErrorCodes.cs
- WebPartDescription.cs
- InputMethod.cs
- NavigationWindow.cs
- EqualityComparer.cs
- SqlException.cs
- SessionStateSection.cs
- TextTreeTextBlock.cs
- MimeTypeMapper.cs
- Model3DGroup.cs
- EditorZone.cs
- MultiSelector.cs
- Size.cs
- IndicFontClient.cs
- MultiTouchSystemGestureLogic.cs
- DrawingBrush.cs
- IERequestCache.cs
- VirtualPath.cs
- GeometryCollection.cs
- ScriptingWebServicesSectionGroup.cs
- CommandHelper.cs
- RouteItem.cs
- BigInt.cs
- ActivityStatusChangeEventArgs.cs
- AddInToken.cs
- RegexFCD.cs
- RangeEnumerable.cs
- EmptyImpersonationContext.cs
- SqlExpander.cs
- FileSystemEventArgs.cs
- PropertyOverridesTypeEditor.cs
- remotingproxy.cs
- Propagator.Evaluator.cs
- NullExtension.cs
- GuidelineCollection.cs
- Rect3DValueSerializer.cs
- SubtreeProcessor.cs
- SqlServer2KCompatibilityCheck.cs
- ResizeGrip.cs
- UnicodeEncoding.cs
- ICspAsymmetricAlgorithm.cs
- CredentialCache.cs