C# Class CodeConnect.Gistify.Extension.TextManagerExtensions

Show file Open project: CodeConnect/gistify

Public Methods

Method Description
TryFindDocumentAndPosition ( this textManager, string &filePath, int &selectionStart, int &selectionEnd ) : bool

Obtains caret position and file name associated with current selection in the editor (supplied via textManager)

Private Methods

Method Description
GetActiveTextView ( IVsTextManager textManager ) : IWpfTextView

Gets the active IWpfTextView, if one exists.

Method Details

TryFindDocumentAndPosition() public static method

Obtains caret position and file name associated with current selection in the editor (supplied via textManager)
public static TryFindDocumentAndPosition ( this textManager, string &filePath, int &selectionStart, int &selectionEnd ) : bool
textManager this Instance of IVsTextManager taken from the Package
filePath string
selectionStart int
selectionEnd int
return bool