Method | Description | |
---|---|---|
CreateSelection ( int start, int end ) : void |
Selects the specified text range.
|
|
EmmetEditor ( IWpfTextView wpfView, IVsTextView textView ) : System.Windows.Forms |
Initializes a new instance of the EmmetEditor class.
|
|
FormatRegion ( int startPosition = -1, int endPosition ) : void |
Formats the specified code region. If region position is negative then the whole document will be formatted.
|
|
GetCaretPosition ( ) : int |
Gets caret position.
|
|
GetContent ( ) : string |
Gets the content of the editor.
|
|
GetContentTypeInActiveBuffer ( ) : string |
Gets content type of the text buffer that has the caret.
|
|
GetCurrentLine ( ) : string |
Gets text on the current line.
|
|
GetCurrentLineRange ( ) : |
Gets indexes of the first and last characters of the current line in the editor.
|
|
GetSelection ( ) : string |
Gets currently selected text.
|
|
GetSelectionRange ( ) : |
Gets current selection range or caret position if no selection exists.
|
|
Prompt ( ) : string |
Displays dialog box that prompts user for input.
|
|
ReplaceContentRange ( string newContent, int startPosition = -1, int endPosition ) : void |
Replaces the specified region in the document with the new content. If region start position is negative then the whole document will be replaced with the specified content.
|
|
SetCaretPosition ( int position ) : void |
Sets the caret position.
|
|
TrackTabStops ( |
Starts tracking the specified regions as tab stops.
|
public CreateSelection ( int start, int end ) : void | ||
start | int | First character to select. |
end | int | Last character to select. |
return | void |
public EmmetEditor ( IWpfTextView wpfView, IVsTextView textView ) : System.Windows.Forms | ||
wpfView | IWpfTextView | The WPF interface for the editor. |
textView | IVsTextView | The text view interface for the editor. |
return | System.Windows.Forms |
public FormatRegion ( int startPosition = -1, int endPosition ) : void | ||
startPosition | int | The start position of the region to format. |
endPosition | int | The end position of the region to format. |
return | void |
public GetContentTypeInActiveBuffer ( ) : string | ||
return | string |
public GetCurrentLineRange ( ) : |
||
return |
public ReplaceContentRange ( string newContent, int startPosition = -1, int endPosition ) : void | ||
newContent | string | New content to replace the specified range with. |
startPosition | int | The start position of the range to replace. |
endPosition | int | The end position of the range to replace. |
return | void |
public SetCaretPosition ( int position ) : void | ||
position | int | New caret position. |
return | void |
public TrackTabStops ( |
||
tabStops | The tab stops array with start and end positions. | |
tabStopGroups | int | Tab stops groups indexes array. |
return | void |