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 エディターのすべてのコンテンツを選択します。

先頭に戻る

関連項目

参照

Microsoft.WebMatrix.Extensibility.Editor 名前空間