IEditorHostService.CreateTextViewAsync Method

Definition

Creates a new ITextViewSnapshot from a serializable Microsoft.VisualStudio.RpcContracts.Editor.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
Microsoft.VisualStudio.RpcContracts.Editor.TextViewContract

A serializable Microsoft.VisualStudio.RpcContracts.Editor.TextViewContract RPC contract.

cancellationToken
CancellationToken

Cancels the request.

Returns

An ITextViewSnapshot thick object that can be used to interact with the editor.

Applies to