Show / Hide Table of Contents

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 Source

GetActiveTextDocumentAsync()

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX