語言

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 類別提供方法,讓使用者介面自動化用戶端能存取對應的原生物件模型。

欄位

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

屬性

名稱 Description
DocumentRange

會取得一個包含文件主文的文字範圍。

SupportedTextSelection

會獲得一個值,指定文本提供者是否支援選取,若支援,則支援的選取類型。

方法

名稱 Description
Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetSelection()

擷取與當前文本選擇相關的不相交文字範圍集合。

GetType()

取得目前實例的 Type。

(繼承來源 Object)
GetVisibleRanges()

從一個文字容器中擷取一個不相交的文字範圍陣列,每個文字範圍從第一行部分可見開始,到最後一行部分可見的行末尾。

MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
RangeFromChild(AutomationElement)

可擷取包含子元素的文字範圍,例如圖片、超連結、Microsoft Excel 試算表或其他嵌入物件。

RangeFromPoint(Point)

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

ToString()

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

(繼承來源 Object)

適用於

另請參閱