IEditorHostService.CreateTextViewAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new ITextViewSnapshot from a serializable TextViewContract RPC contract.
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Editor.ITextViewSnapshot> CreateTextViewAsync (Microsoft.VisualStudio.RpcContracts.Editor.TextViewContract textView, System.Threading.CancellationToken cancellationToken);
abstract member CreateTextViewAsync : Microsoft.VisualStudio.RpcContracts.Editor.TextViewContract * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Editor.ITextViewSnapshot>
Public Function CreateTextViewAsync (textView As TextViewContract, cancellationToken As CancellationToken) As Task(Of ITextViewSnapshot)
Parameters
- textView
- TextViewContract
A serializable TextViewContract RPC contract.
- cancellationToken
- CancellationToken
Cancels the request.
Returns
An ITextViewSnapshot thick object that can be used to interact with the editor.