Partager via


ITextViewMarginProvider.CreateVisualElementAsync Method

Definition

Creates visual element representing margin's UI content.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteUserControl> CreateVisualElementAsync (Microsoft.VisualStudio.Extensibility.Editor.ITextViewSnapshot textView, System.Threading.CancellationToken cancellationToken);
abstract member CreateVisualElementAsync : Microsoft.VisualStudio.Extensibility.Editor.ITextViewSnapshot * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteUserControl>
Public Function CreateVisualElementAsync (textView As ITextViewSnapshot, cancellationToken As CancellationToken) As Task(Of IRemoteUserControl)

Parameters

textView
ITextViewSnapshot

ITextViewSnapshot representing host text view.

cancellationToken
CancellationToken

A cancellation token to cancel the in-progress content creation.

Returns

An IRemoteUserControl which represents the margin's UI content.

Applies to