ITextRangeProvider インターフェイス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
メソッドとプロパティを公開して、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
- 属性
注釈
TextPattern コントロール パターンをサポートする必要があるUI オートメーション プロバイダーに実装されます。
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() |