IEditorSelection インターフェイス
v2 に適用されます。
IEditorText インターフェイスの ServiceProvider を通して通常使用できるエディターでキャレット、選択、テキスト挿入を定義します。
名前空間: Microsoft.WebMatrix.Extensibility.Editor
アセンブリ: Microsoft.WebMatrix.Extensibility (Microsoft.WebMatrix.Extensibility.dll)
構文
'宣言
Public Interface IEditorSelection _
Inherits IEditorText
'使用
Dim instance As IEditorSelection
public interface IEditorSelection : IEditorText
public interface class IEditorSelection : IEditorText
type IEditorSelection =
interface
interface IEditorText
end
public interface IEditorSelection extends IEditorText
IEditorSelection 型は、以下のメンバーを公開しています。
プロパティ
名前 | 説明 | |
---|---|---|
![]() |
CaretPosition | バッファー 位置を取得します。 |
![]() |
CurrentColumn | 現在選択されている列を取得します。 |
![]() |
CurrentLine | エディターのカーソル位置の現在の行番号を取得します。 |
![]() |
EndSelectionPosition | 選択終了のバッファー位置を取得します。 |
![]() |
IsBlockSelection | 選択がブロック選択かどうかを取得します。 |
![]() |
LineCount | 選択の合計行数を取得します。 |
![]() |
ReadOnly | 現在のテキストが読み取り専用かどうかを示す値を取得します。 (IEditorText から継承されています。) |
![]() |
SelectedText | 選択内のテキストを取得します。 |
![]() |
StartSelectionPosition | 選択開始のバッファー位置を取得します。 |
![]() |
Text | エディターのすべてのテキストを取得または設定します。テキストを設定すると、ダーティ状態がクリアされます。 (IEditorText から継承されています。) |
先頭に戻る
メソッド
名前 | 説明 | |
---|---|---|
![]() |
GoTo | 開始オフセットから選択文字数までの選択を作成します。 |
![]() |
InsertText | 現在のエディターがまだ開いており、破棄されていない場合はテキストが挿入されます。 |
![]() |
SelectAll | エディターのすべてのコンテンツを選択します。 |
先頭に戻る