Class Editor
A collection of services related to the editor.
Inheritance
System.Object
Editor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Community.VisualStudio.Toolkit
Assembly: Community.VisualStudio.Toolkit.dll
Syntax
public class Editor
Methods
| Improve this Doc View SourceGetActiveTextDocumentAsync()
Gets an instance of EnvDTE.TextDocument from the currently active document.
Declaration
public Task<TextDocument> GetActiveTextDocumentAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<EnvDTE.TextDocument> |
GetCurrentNativeTextViewAsync()
Gets the native text view from the currently active document.
Declaration
public Task<IVsTextView> GetCurrentNativeTextViewAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Microsoft.VisualStudio.TextManager.Interop.IVsTextView> |
GetCurrentWpfTextViewAsync()
Gets the WPF text view from the currently active document.
Declaration
public Task<IWpfTextView> GetCurrentWpfTextViewAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Microsoft.VisualStudio.Text.Editor.IWpfTextView> |