Share via


ITextRangeProvider インターフェイス

定義

ITextProvider を実装するテキスト コンテナー内の連続するテキストの範囲への、UI オートメーション クライアントのアクセスをサポートするメソッドとプロパティを公開します。

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
属性

注釈

コントロール パターンをサポートする必要があるUI オートメーション プロバイダーにTextPattern実装されます。

TextPatternRange 、コンテナー内の挿入ポイント、サブセット、またはすべてのテキストを TextPattern 表すことができます。

メソッド

AddToSelection()

複数の非結合選択をサポートするテキスト コンテナー内の強調表示されたテキストのコレクションに追加します。

Clone()

元の ITextRangeProvider と同一で、元のプロパティをすべて継承する新しい ITextRangeProvider を返します。

Compare(ITextRangeProvider)

テキスト範囲全体 (Start エンドポイントから End エンドポイントまで) が別のテキスト範囲と同じであるかどうかを示す値を返します。

CompareEndpoints(TextPatternRangeEndpoint, ITextRangeProvider, TextPatternRangeEndpoint)

2 つのテキスト範囲のエンドポイントが同じかどうかを示す値を返します。

ExpandToEnclosingUnit(TextUnit)

指定されたテキスト単位にテキスト範囲を拡大します。

FindAttribute(Int32, Object, Boolean)

指定された属性の値を持つテキスト範囲のサブセットを返します。

FindText(String, Boolean, Boolean)

指定したテキストを含むテキスト範囲のサブセットを返します。

GetAttributeValue(Int32)

指定した属性の値をテキスト範囲から取得します。

GetBoundingRectangles()

テキスト範囲内のテキストの表示されている各行 (全体または一部) に外接する四角形のコレクションを取得します。

GetChildren()

テキスト範囲内にあるすべての埋め込みオブジェクトのコレクションを取得します。

GetEnclosingElement()

テキスト範囲を囲む最も内側のコントロールを返します。

GetText(Int32)

範囲のプレーン テキストを取得します。

Move(TextUnit, Int32)

指定されたテキスト単位数の分、テキスト範囲を移動します。

MoveEndpointByRange(TextPatternRangeEndpoint, ITextRangeProvider, TextPatternRangeEndpoint)

テキスト範囲の 1 つのエンドポイントを、2 番目のテキスト範囲の指定のエンドポイントに移動します。

MoveEndpointByUnit(TextPatternRangeEndpoint, TextUnit, Int32)

テキスト範囲の 1 つのエンドポイントを、指定されたテキスト単位数の分、ドキュメントの範囲内で移動します。

RemoveFromSelection()

複数の非結合選択をサポートするテキスト コンテナー内の強調表示されたテキストのコレクションから、呼び出し元の Start エンドポイントおよび End エンドポイントに対応する、強調表示されたセクションを削除します。

ScrollIntoView(Boolean)

テキスト範囲がビューポート内に表示されるまで、テキスト コントロールを垂直方向にスクロールします。

Select()

テキスト範囲の Start エンドポイントおよび End エンドポイントに対応するテキスト コントロール内のテキストを強調表示します。

適用対象

こちらもご覧ください