更新 : 2007 年 11 月
この API は、.NET Framework インフラストラクチャをサポートします。独自に作成したコードから直接使用するためのものではありません。
このプロバイダが表すソースにある文字の範囲を取得します。
名前空間 : Microsoft.Windows.Design.Documents
アセンブリ : Microsoft.Windows.Design.Markup (Microsoft.Windows.Design.Markup.dll 内)
構文
'宣言
Function GetTextRange ( _
___location As Integer, _
length As Integer, _
kind As Integer _
) As TextRange
'使用
Dim instance As IMarkupSourceProvider
Dim ___location As Integer
Dim length As Integer
Dim kind As Integer
Dim returnValue As TextRange
returnValue = instance.GetTextRange(___location, _
length, kind)
TextRange GetTextRange(
int ___location,
int length,
int kind
)
TextRange^ GetTextRange(
int ___location,
int length,
int kind
)
function GetTextRange(
___location : int,
length : int,
kind : int
) : TextRange
パラメータ
___location
型 : System.Int32ファイルの先頭からのオフセットによる範囲の開始位置。
length
型 : System.Int32文字数による範囲の長さ。
- kind
型 : System.Int32
戻り値
型 : Microsoft.Windows.Design.SourceUpdate.TextRange
このプロバイダが表すソースにある文字の TextRange を返します。
アクセス許可
- 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
参照
参照
IMarkupSourceProvider インターフェイス
Microsoft.Windows.Design.Documents 名前空間