語言

TextPatternRange 類別

定義

代表容器中 TextPattern 連續文字的一段。

public ref class TextPatternRange
public class TextPatternRange
type TextPatternRange = class
Public Class TextPatternRange
繼承
TextPatternRange

備註

A TextPatternRange 可以代表插入點、子集,或容器中的 TextPattern 全部文字。

TextPatternRange若發生以下情況之一:容器中的TextPattern文字因使用者活動而改變,或SetValue使用方法ValuePattern程式化改變容器中TextPattern文字值,A 將被視為無效。

屬性

名稱 Description
TextPattern

會得到 TextPattern 與文字範圍相關聯的資訊。

方法

名稱 Description
AddToSelection()

新增高亮文字的集合,包含多個不相交的選取。

Clone()

取得 TextPatternRange 與原始 TextPatternRange 相同且繼承原始所有性質的新

Compare(TextPatternRange)

回傳一個 Boolean 值,表示某個文字範圍的跨度( Start 即到該 End 終端)是否與其他文字範圍相同。

CompareEndpoints(TextPatternRangeEndpoint, TextPatternRange, TextPatternRangeEndpoint)

回傳 , Int32 表示兩個文字區塊是否有相同的終點。

Equals(Object)

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

(繼承來源 Object)
ExpandToEnclosingUnit(TextUnit)

將文字範圍擴展至指定的 TextUnit範圍。

FindAttribute(AutomationTextAttribute, Object, Boolean)

回傳一個具有指定屬性值的文字範圍子集。

FindText(String, Boolean, Boolean)

回傳包含指定文字的文字範圍子集。

GetAttributeValue(AutomationTextAttribute)

回傳指定屬性的值,涵蓋整個文字範圍。

GetBoundingRectangles()

為每行完整或部分可見的文字,檢索一組邊界矩形。

GetChildren()

擷取所有落在文字範圍內的嵌入物件集合。

GetEnclosingElement()

回傳最內 AutomationElement 層的文字範圍。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetText(Int32)

回傳文字範圍的純文字。

GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
Move(TextUnit, Int32)

移動指定數量的文字單位。

MoveEndpointByRange(TextPatternRangeEndpoint, TextPatternRange, TextPatternRangeEndpoint)

將一個文字範圍的一個端點移動到另一個文字範圍的指定端點。

MoveEndpointByUnit(TextPatternRangeEndpoint, TextUnit, Int32)

在文件範圍內移動文本範圍的一個端點,該節點數為指定數量 TextUnit。

RemoveFromSelection()

從一個支援多個不相交選擇的文本容器中,移除一個對應呼叫文字範圍 Start 與 End 端點的標示文字區塊。

ScrollIntoView(Boolean)

導致文字控制會垂直捲動,直到視窗顯示文字範圍。

Select()

在文字控制中選取對應文字範圍 Start 與 End 端點的文字。

ToString()

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

(繼承來源 Object)

適用於

另請參閱