Freigeben über


IWpfTextViewMarginProvider.CreateMargin Method

Definition

Creates an IWpfTextViewMargin for the given IWpfTextViewHost.

public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextViewMargin ^ CreateMargin(Microsoft::VisualStudio::Text::Editor::IWpfTextViewHost ^ wpfTextViewHost, Microsoft::VisualStudio::Text::Editor::IWpfTextViewMargin ^ marginContainer);
public Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin CreateMargin (Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost wpfTextViewHost, Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin marginContainer);
abstract member CreateMargin : Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost * Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin -> Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin
Public Function CreateMargin (wpfTextViewHost As IWpfTextViewHost, marginContainer As IWpfTextViewMargin) As IWpfTextViewMargin

Parameters

wpfTextViewHost
IWpfTextViewHost

The IWpfTextViewHost for which to create the IWpfTextViewMargin.

marginContainer
IWpfTextViewMargin

The margin that will contain the newly-created margin.

Returns

The IWpfTextViewMargin.
The value may be null if this IWpfTextViewMarginProvider does not participate for this context.

Remarks

This method may return null if this IWpfTextViewMarginProvider does not participate for this context.

Applies to