IEditorSelection Interface
Applies to v2.
Defines the caret, selection, and text insertion in an editor typically available through the ServiceProvider on the IEditorText interface.
Namespace: Microsoft.WebMatrix.Extensibility.Editor
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
Public Interface IEditorSelection _
Inherits IEditorText
'Usage
Dim instance As IEditorSelection
public interface IEditorSelection : IEditorText
public interface class IEditorSelection : IEditorText
type IEditorSelection =
interface
interface IEditorText
end
public interface IEditorSelection extends IEditorText
The IEditorSelection type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
CaretPosition | Gets the Buffer position. |
![]() |
CurrentColumn | Gets the currently selected column. |
![]() |
CurrentLine | Gets the current line number for the cursor position in the editor. |
![]() |
EndSelectionPosition | Gets the buffer position for end of selection. |
![]() |
IsBlockSelection | Gets whether the selection is a block selection. |
![]() |
LineCount | Gets the total number of lines in the selection. |
![]() |
ReadOnly | Gets a value that indicates whether the current text is read-only. (Inherited from IEditorText.) |
![]() |
SelectedText | Gets the text in the selection. |
![]() |
StartSelectionPosition | Gets the buffer position for start of selection. |
![]() |
Text | Gets or sets all the text in the editor. Setting the text will clear the dirty state. (Inherited from IEditorText.) |
Top
Methods
Name | Description | |
---|---|---|
![]() |
GoTo | Creates a selection from a staring offset to the number of characters to select. |
![]() |
InsertText | Inserts text into the current editor if it is still open, and haven't been disposed. |
![]() |
SelectAll | Selects all the contents of the editor. |
Top