Share via


ITextRangeProvider2 インターフェイス

定義

ITextRange インターフェイスを拡張して、Microsoft UI オートメーション プロバイダーがテキスト入力操作に合ったコンテキスト メニューをプログラムで開くことができるようにします。

public interface class ITextRangeProvider2 : ITextRangeProvider
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3552460283, 40788, 17986, 167, 165, 92, 24, 213, 238, 42, 63)]
struct ITextRangeProvider2 : ITextRangeProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3552460283, 40788, 17986, 167, 165, 92, 24, 213, 238, 42, 63)]
public interface ITextRangeProvider2 : ITextRangeProvider
Public Interface ITextRangeProvider2
Implements ITextRangeProvider
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

メソッド

AddToSelection()

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

(継承元 ITextRangeProvider)
Clone()

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

(継承元 ITextRangeProvider)
Compare(ITextRangeProvider)

テキスト範囲の始点と終点が別のテキスト範囲と同じかどうかを示す値を返します。

(継承元 ITextRangeProvider)
CompareEndpoints(TextPatternRangeEndpoint, ITextRangeProvider, TextPatternRangeEndpoint)

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

(継承元 ITextRangeProvider)
ExpandToEnclosingUnit(TextUnit)

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

(継承元 ITextRangeProvider)
FindAttribute(Int32, Object, Boolean)

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

(継承元 ITextRangeProvider)
FindText(String, Boolean, Boolean)

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

(継承元 ITextRangeProvider)
GetAttributeValue(Int32)

テキスト範囲全体で指定された属性 ID の値を取得します。

(継承元 ITextRangeProvider)
GetBoundingRectangles(Double[])

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

(継承元 ITextRangeProvider)
GetChildren()

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

(継承元 ITextRangeProvider)
GetEnclosingElement()

テキスト範囲を囲む最も内側の要素を返します。

(継承元 ITextRangeProvider)
GetText(Int32)

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

(継承元 ITextRangeProvider)
Move(TextUnit, Int32)

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

(継承元 ITextRangeProvider)
MoveEndpointByRange(TextPatternRangeEndpoint, ITextRangeProvider, TextPatternRangeEndpoint)

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

(継承元 ITextRangeProvider)
MoveEndpointByUnit(TextPatternRangeEndpoint, TextUnit, Int32)

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

(継承元 ITextRangeProvider)
RemoveFromSelection()

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

(継承元 ITextRangeProvider)
ScrollIntoView(Boolean)

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

(継承元 ITextRangeProvider)
Select()

テキスト範囲の開始エンドポイントと終了エンドポイントに対応するテキスト コントロール内のテキストを強調表示します。

(継承元 ITextRangeProvider)
ShowContextMenu()

owner 要素で使用できるコンテキスト メニューを表示します。

適用対象

こちらもご覧ください