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
- TdsParser.cs
- XmlRawWriterWrapper.cs
- Border.cs
- RtfToXamlReader.cs
- RijndaelManaged.cs
- DefaultValueConverter.cs
- HostedNamedPipeTransportManager.cs
- SigningDialog.cs
- WindowsSecurityTokenAuthenticator.cs
- NopReturnReader.cs
- SafeFileHandle.cs
- MimeXmlImporter.cs
- InputLanguageProfileNotifySink.cs
- ExeContext.cs
- ThreadStateException.cs
- BinaryObjectWriter.cs
- ConfigurationPropertyCollection.cs
- SafeProcessHandle.cs
- EventDescriptor.cs
- AsyncPostBackTrigger.cs
- SchemaCollectionCompiler.cs
- FrameworkPropertyMetadata.cs
- DataExpression.cs
- IfAction.cs
- PersonalizationStateInfo.cs
- FixedPosition.cs
- IdentifierService.cs
- SelectedDatesCollection.cs
- PassportIdentity.cs
- NestedContainer.cs
- TemplateParser.cs
- Camera.cs
- HttpListenerException.cs
- GridViewColumnCollectionChangedEventArgs.cs
- SrgsElement.cs
- xsdvalidator.cs
- KeyedHashAlgorithm.cs
- DocumentPageView.cs
- ListView.cs
- UntypedNullExpression.cs
- ContextProperty.cs
- LassoHelper.cs
- ToolTipService.cs
- GenericIdentity.cs
- HyperlinkAutomationPeer.cs
- AnnotationObservableCollection.cs
- DataGridViewRowPostPaintEventArgs.cs
- HashCodeCombiner.cs
- SmiEventSink_Default.cs
- ScriptMethodAttribute.cs
- XmlCompatibilityReader.cs
- CopyEncoder.cs
- ZoomPercentageConverter.cs
- DashStyles.cs
- EntityDataSourceWizardForm.cs
- WsatEtwTraceListener.cs
- HtmlTableCellCollection.cs
- ChangeNode.cs
- Tokenizer.cs
- AccessViolationException.cs
- WebBrowserPermission.cs
- XmlName.cs
- Debugger.cs
- HtmlAnchor.cs
- RegexMatch.cs
- EdmType.cs
- coordinator.cs
- PropertyGeneratedEventArgs.cs
- HttpSessionStateBase.cs
- WrappedIUnknown.cs
- Monitor.cs
- SqlNodeAnnotations.cs
- BindingParameterCollection.cs
- EventDescriptor.cs
- AnnotationResource.cs
- GraphicsState.cs
- EntitySetRetriever.cs
- PeerConnector.cs
- ObjRef.cs
- DbConnectionPoolIdentity.cs
- TextRangeEditTables.cs
- DataExchangeServiceBinder.cs
- xamlnodes.cs
- TrackBar.cs
- FileSecurity.cs
- RoutingService.cs
- GlobalizationSection.cs
- DocumentEventArgs.cs
- ExpressionParser.cs
- DecodeHelper.cs
- UpWmlPageAdapter.cs
- DirtyTextRange.cs
- DropDownList.cs
- SingleObjectCollection.cs
- StylusShape.cs
- CheckBoxField.cs
- CustomErrorCollection.cs
- EntityDataSourceWrapperCollection.cs
- NamespaceList.cs
- FileIOPermission.cs