TextPattern 類別

定義

代表包含文字的控制項。Represents controls that contain text.

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類別可能無法提供僅存在於特定使用者介面自動化提供者中的文字功能。The TextPattern class may not provide for text features that exist only in a particular UI Automation provider. 針對這些唯一且通常是先進的功能AutomationElement , 類別會提供使用者介面自動化用戶端的方法, 以存取對應的原生物件模型。For these unique and often advanced features, the AutomationElement class provides methods for a UI Automation client to access the corresponding native object model.

欄位

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 when 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.

屬性

DocumentRange

取得包含文件主要文字的文字範圍。Gets a text range that encloses the main text of a document.

SupportedTextSelection

取得值,可指定文字提供者是否支援選取範圍;如果支援,則指定支援的選取範圍類型。Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetSelection()

擷取與目前文字選取範圍關聯之斷續文字範圍的集合。Retrieves a collection of disjoint text ranges associated with the current text selection or selections.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
GetVisibleRanges()

從文字容器擷取斷續文字範圍的陣列,其中每一個文字範圍都以第一個局部可見行開頭,一直到最後一個局部可見行的尾端為止。Retrieves an array of disjoint text ranges from a text container where each text range begins with the first partially visible line through to the end of the last partially visible line.

MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
RangeFromChild(AutomationElement)

擷取包含子項目 (例如影像、超連結、Microsoft ExcelMicrosoft Excel 試算表或其他內嵌物件) 的文字範圍。Retrieves a text range enclosing a child element such as an image, hyperlink, Microsoft ExcelMicrosoft Excel spreadsheet, or other embedded object.

RangeFromPoint(Point)

傳回最接近指定之螢幕座標的變質 (空) 文字範圍。Returns the degenerate (empty) text range nearest to the specified screen coordinates.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱