ITextRangeProvider 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供方法與屬性,支援用戶端存取一個實作 ITextProvider 的文字容器中的連續文字區段使用者介面自動化。
public interface class ITextRangeProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("5347ad7b-c355-46f8-aff5-909033582f63")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ITextRangeProvider
public interface ITextRangeProvider
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("5347ad7b-c355-46f8-aff5-909033582f63")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ITextRangeProvider = interface
type ITextRangeProvider = interface
Public Interface ITextRangeProvider
- 屬性
備註
實作於必須支援 TextPattern 控制模式的 使用者介面自動化 供應商上。
A TextPatternRange 可以代表插入點、子集,或容器中的 TextPattern 全部文字。
方法
| 名稱 | Description |
|---|---|
| AddToSelection() |
新增高亮文字的集合,包含多個不相交的選取。 |
| Clone() |
回傳 ITextRangeProvider 一個與原始 ITextRangeProvider 相同且繼承原始所有性質的新 |
| Compare(ITextRangeProvider) | |
| CompareEndpoints(TextPatternRangeEndpoint, ITextRangeProvider, TextPatternRangeEndpoint) |
回傳一個值,指定兩個文字區塊是否有相同的終點。 |
| ExpandToEnclosingUnit(TextUnit) |
將文字範圍擴展至指定的文字單位。 |
| FindAttribute(Int32, Object, Boolean) |
回傳一個具有指定屬性值的文字範圍子集。 |
| FindText(String, Boolean, Boolean) |
回傳包含指定文字的文字範圍子集。 |
| GetAttributeValue(Int32) |
檢索指定屬性在整個文字範圍內的值。 |
| GetBoundingRectangles() |
為每行完整或部分可見的文字,檢索一組邊界矩形。 |
| GetChildren() |
擷取所有落在文字範圍內的嵌入物件集合。 |
| GetEnclosingElement() |
回傳包圍文字範圍的最內層控制項。 |
| GetText(Int32) |
取得該範圍的明文。 |
| Move(TextUnit, Int32) |
移動指定數量的文字單位。 |
| MoveEndpointByRange(TextPatternRangeEndpoint, ITextRangeProvider, TextPatternRangeEndpoint) |
將一個文字範圍的一個端點移動到另一個文字範圍的指定端點。 |
| MoveEndpointByUnit(TextPatternRangeEndpoint, TextUnit, Int32) |
將文本範圍的一個端點移動,將文件範圍內指定的文本單元數量移動。 |
| RemoveFromSelection() | |
| ScrollIntoView(Boolean) |
導致文字控制會垂直捲動,直到視窗顯示文字範圍。 |
| Select() |