ITextProvider インターフェイス

定義

テキストを含むコントロールへのクライアント アクセスUI オートメーションサポートするメソッドとプロパティを公開します。

public interface class ITextProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("3589c92c-63f3-4367-99bb-ada653b77cf2")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ITextProvider
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("3589c92c-63f3-4367-99bb-ada653b77cf2")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ITextProvider = interface
Public Interface ITextProvider
属性

注釈

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

プロパティ

名前 説明
DocumentRange

文書のメイン テキストを囲むテキスト範囲を取得します。

SupportedTextSelection

テキスト プロバイダーが選択範囲をサポートしているかどうかを示す値を取得します。サポートされている場合は、選択範囲の種類をサポートします。

メソッド

名前 説明
GetSelection()

現在のテキストの選択または選択に関連付けられている不整合なテキスト範囲のコレクションを取得します。

GetVisibleRanges()

各テキスト範囲が最初の部分的に表示される行から最後に部分的に表示される行の末尾まで開始するテキスト コンテナーから、不整合なテキスト範囲の配列を取得します。

RangeFromChild(IRawElementProviderSimple)

画像、ハイパーリンク、またはその他の埋め込みオブジェクトなどの子要素を囲むテキスト範囲を取得します。

RangeFromPoint(Point)

指定した画面座標に最も近い縮退 (空) テキスト範囲を返します。

適用対象

こちらもご覧ください