TextPattern 類別

定義

代表包含文字的控制項。

public ref class TextPattern : System::Windows::Automation::BasePattern
public class TextPattern : System.Windows.Automation.BasePattern
type TextPattern = class
    inherit BasePattern
Public Class TextPattern
Inherits BasePattern
繼承
TextPattern

備註

類別 TextPattern 可能不會提供只存在於特定消費者介面自動化提供者中的文字功能。 針對這些獨特的進階功能,類別 AutomationElement 會提供方法給消費者介面自動化用戶端存取對應的原生物件模型。

欄位

AnimationStyleAttribute

識別文字範圍的 AnimationStyle 屬性。

BackgroundColorAttribute

指出文字範圍的 BackgroundColor 屬性。

BulletStyleAttribute

識別文字範圍的 BulletStyle 屬性。

CapStyleAttribute

識別文字範圍的 CapStyle 屬性。

CultureAttribute

識別文字範圍的 Culture (CultureInfo) 屬性,細分到附屬語言層級,例如瑞士法文 (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

識別在 Rich Edit 控制項中的一個文字範圍內,指定屬性的值是否會變化。

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) 屬性。

屬性

DocumentRange

取得包含文件主要文字的文字範圍。

SupportedTextSelection

取得值,可指定文字提供者是否支援選取範圍;如果支援,則指定支援的選取範圍類型。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetSelection()

擷取與目前文字選取範圍關聯之斷續文字範圍的集合。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetVisibleRanges()

從文字容器擷取斷續文字範圍的陣列,其中每一個文字範圍都以第一個局部可見行開頭,一直到最後一個局部可見行的尾端為止。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
RangeFromChild(AutomationElement)

擷取包含影像、超連結、Microsoft Excel 試算表或其他内嵌物件等子項目的文字範圍。

RangeFromPoint(Point)

傳回最接近指定之螢幕座標的變質 (空) 文字範圍。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱