TextPatternIdentifiers 类

定义

包含用作 ITextProvider 的标识符的值。Contains values used as identifiers for ITextProvider.

public ref class TextPatternIdentifiers abstract sealed
public static class TextPatternIdentifiers
type TextPatternIdentifiers = class
Public Class TextPatternIdentifiers
继承
TextPatternIdentifiers

注解

TextPattern公开对象的文本内容的详细信息, 如编辑控件和文档。TextPattern exposes detailed information of the textual contents of objects such as edit controls and documents.

UI 自动化提供程序应编写为可在部分信任环境中运行。UI Automation providers should be written so that they can work in a partial-trust environment. 因为 Uiautomationclient.dll 未配置为完全信任, 所以提供程序代码不应引用该程序集。Because UIAutomationClient.dll is not configured for full trust, your provider code should not reference that assembly. 如果情况如此,则代码可以在完全信任环境中运行,但无法在部分信任环境中运行。If it does so, the code may run in a full-trust environment but then fail in a partial-trust environment.

特别是,不要使用 UIAutomationClient.dll 中类的字段,例如 AutomationElement中的字段。In particular, do not use fields from classes in UIAutomationClient.dll such as those in AutomationElement. 请改用 UIAutomationTypes.dll 中类的等效字段,如 AutomationElementIdentifiersInstead, use the equivalent fields from classes in UIAutomationTypes.dll, such as AutomationElementIdentifiers.

字段

AnimationStyleAttribute

标识文本范围的 AnimationStyle 特性。Identifies the AnimationStyle attribute of a text range.

BackgroundColorAttribute

标识文本范围的 BackgroundColor 属性。Identifies the BackgroundColor attribute of a text range.

BulletStyleAttribute

标识文本范围的 BulletStyle 特性。Identifies the BulletStyle attribute of a text range.

CapStyleAttribute

标识文本范围的 CapStyle 特性。Identifies the CapStyle attribute of a text range.

CultureAttribute

标识细化到子语言级别的文本范围的 Culture (CultureInfo) 特性;例如,瑞士法语 (fr-CH),而不是法语 (fr)。Identifies the Culture (CultureInfo) attribute of a text range down to the sub-language level; for example, French-Switzerland (fr-CH) instead of French (fr).

FontNameAttribute

标识文本范围的 FontName 特性。Identifies the FontName attribute of a text range.

FontSizeAttribute

标识文本范围的 FontSize 特性。Identifies the FontSize attribute of a text range.

FontWeightAttribute

标识文本范围的 FontWeight 特性。Identifies the FontWeight attribute of a text range.

ForegroundColorAttribute

标识文本范围的 ForegroundColor (COLORREF) 属性。Identifies the ForegroundColor (COLORREF) attribute of a text range.

HorizontalTextAlignmentAttribute

标识文本范围的 HorizontalTextAlignment 特性。Identifies the HorizontalTextAlignment attribute of a text range.

IndentationFirstLineAttribute

标识文本范围的 IndentationFirstLine (TextIndent) 特性。Identifies the IndentationFirstLine (TextIndent) attribute of a text range.

IndentationLeadingAttribute

标识文本范围的 IndentationLeading (TextIndent) 特性。Identifies the IndentationLeading (TextIndent) attribute of a text range.

IndentationTrailingAttribute

标识文本范围的 IndentationTrailing (TextIndent) 特性。Identifies the IndentationTrailing (TextIndent) attribute of a text range.

IsHiddenAttribute

标识文本范围的 IsHidden 特性。Identifies the IsHidden attribute of a text range.

IsItalicAttribute

标识文本范围的 IsItalic (FontStyle) 特性。Identifies the IsItalic (FontStyle) attribute of a text range.

IsReadOnlyAttribute

标识文本范围的 IsReadOnly 特性。Identifies the IsReadOnly attribute of a text range.

IsSubscriptAttribute

标识文本范围的 IsSubscript (FontVariants) 特性。Identifies the IsSubscript (FontVariants) attribute of a text range.

IsSuperscriptAttribute

标识文本范围的 IsSuperscript (FontVariants) 特性。Identifies the IsSuperscript (FontVariants) attribute of a text range.

MarginBottomAttribute

标识文本范围的 MarginBottom (PageSettings) 特性。Identifies the MarginBottom (PageSettings) attribute of a text range.

MarginLeadingAttribute

标识文本范围的 MarginLeading (PageSettings) 特性。Identifies the MarginLeading (PageSettings) attribute of a text range.

MarginTopAttribute

标识文本范围的 MarginTop (PageSettings) 特性。Identifies the MarginTop (PageSettings) attribute of a text range.

MarginTrailingAttribute

标识文本范围的 MarginTrailing (PageSettings) 特性。Identifies the MarginTrailing (PageSettings) attribute of a text range.

MixedAttributeValue

标识给定特性的值是否在 Rich Edit 控件中的某个文本范围内发生变化。Identifies whether the value of a given attribute varies over a text range in a rich edit control.

OutlineStylesAttribute

标识文本范围的 OutlineStyles (OutlineStyles) 特性。Identifies the OutlineStyles (OutlineStyles) attribute of a text range.

OverlineColorAttribute

标识文本范围的 OverlineColor 特性。Identifies the OverlineColor attribute of a text range.

OverlineStyleAttribute

标识文本范围的 OverlineStyle (TextDecorationLineStyle) 特性。Identifies the OverlineStyle (TextDecorationLineStyle) attribute of a text range.

Pattern

标识 TextPattern 模式。Identifies the TextPattern pattern.

StrikethroughColorAttribute

标识文本范围的 StrikethroughColor 特性。Identifies the StrikethroughColor attribute of a text range.

StrikethroughStyleAttribute

标识文本范围的 StrikethroughStyle (TextDecorationLineStyle) 特性。Identifies the StrikethroughStyle (TextDecorationLineStyle) attribute of a text range.

TabsAttribute

标识文本范围的 Tabs 特性。Identifies the Tabs attribute of a text range.

TextChangedEvent

标识每当修改文本内容时引发的事件。Identifies the event raised whenever textual content is modified.

TextFlowDirectionsAttribute

标识文本范围的 TextFlowDirections (FlowDirections) 特性。Identifies the TextFlowDirections (FlowDirections) attribute of a text range.

TextSelectionChangedEvent

标识每当修改文本选择时引发的事件。Identifies the event raised whenever the text selection is modified.

UnderlineColorAttribute

标识文本范围的 UnderlineColor 特性。Identifies the UnderlineColor attribute of a text range.

UnderlineStyleAttribute

标识文本范围的 UnderlineStyle (TextDecorationLineStyle) 特性。Identifies the UnderlineStyle (TextDecorationLineStyle) attribute of a text range.

适用于

另请参阅