TextPatternIdentifiers 类

定义

包含用作标识符 ITextProvider的值。

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

注解

TextPattern 公开对象(如编辑控件和文档)的文本内容的详细信息。

应编写UI 自动化提供程序,以便在部分信任环境中工作。 由于 UIAutomationClient.dll 未配置为完全信任,因此提供程序代码不应引用该程序集。 如果这样做,代码可能会在完全信任环境中运行,但在部分信任环境中会失败。

具体而言,请勿在类中使用 UIAutomationClient.dll 中的字段,例如这些 AutomationElement字段。 请改用 UIAutomationTypes.dll类中的等效字段,例如 AutomationElementIdentifiers

字段

名称 说明
AnimationStyleAttribute

AnimationStyle标识文本范围的属性。

BackgroundColorAttribute

标识文本范围的 BackgroundColor 属性。

BulletStyleAttribute

BulletStyle标识文本范围的属性。

CapStyleAttribute

CapStyle标识文本范围的属性。

CultureAttribute

标识文本范围的 Culture (CultureInfo) 属性,其范围缩小到子语言级别;例如,French-Switzerland(fr-CH)而不是法语(fr)。

FontNameAttribute

FontName标识文本范围的属性。

FontSizeAttribute

FontSize标识文本范围的属性。

FontWeightAttribute

FontWeight标识文本范围的属性。

ForegroundColorAttribute

标识文本范围的 ForegroundColor (COLORREF) 属性。

HorizontalTextAlignmentAttribute

HorizontalTextAlignment标识文本范围的属性。

IndentationFirstLineAttribute

标识 IndentationFirstLine 文本范围的 (TextIndent) 属性。

IndentationLeadingAttribute

标识 IndentationLeading 文本范围的 (TextIndent) 属性。

IndentationTrailingAttribute

标识 IndentationTrailing 文本范围的 (TextIndent) 属性。

IsHiddenAttribute

IsHidden标识文本范围的属性。

IsItalicAttribute

标识 IsItalic 文本范围的 (FontStyle) 属性。

IsReadOnlyAttribute

IsReadOnly标识文本范围的属性。

IsSubscriptAttribute

标识 IsSubscript 文本范围的 (FontVariants) 属性。

IsSuperscriptAttribute

标识 IsSuperscript 文本范围的 (FontVariants) 属性。

MarginBottomAttribute

标识 MarginBottom 文本范围的 (PageSettings) 属性。

MarginLeadingAttribute

标识 MarginLeading 文本范围的 (PageSettings) 属性。

MarginTopAttribute

标识 MarginTop 文本范围的 (PageSettings) 属性。

MarginTrailingAttribute

标识 MarginTrailing 文本范围的 (PageSettings) 属性。

MixedAttributeValue

标识给定属性的值是否因丰富编辑控件中的文本范围而异。

OutlineStylesAttribute

标识 OutlineStyles 文本范围的 (OutlineStyles) 属性。

OverlineColorAttribute

OverlineColor标识文本范围的属性。

OverlineStyleAttribute

标识 OverlineStyle 文本范围的 (TextDecorationLineStyle) 属性。

Pattern

标识 TextPattern 模式。

StrikethroughColorAttribute

StrikethroughColor标识文本范围的属性。

StrikethroughStyleAttribute

标识 StrikethroughStyle 文本范围的 (TextDecorationLineStyle) 属性。

TabsAttribute

Tabs标识文本范围的属性。

TextChangedEvent

标识每当修改文本内容时引发的事件。

TextFlowDirectionsAttribute

标识 TextFlowDirections 文本范围的 (FlowDirections) 属性。

TextSelectionChangedEvent

标识每当修改文本选择时引发的事件。

UnderlineColorAttribute

UnderlineColor标识文本范围的属性。

UnderlineStyleAttribute

标识 UnderlineStyle 文本范围的 (TextDecorationLineStyle) 属性。

适用于

另请参阅