ITextViewMarginProvider.CreateVisualElementAsync 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 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.