IWpfTextViewMarginProvider::CreateMargin Method (IWpfTextViewHost^, IWpfTextViewMargin^)

 

Creates an IWpfTextViewMargin for the given IWpfTextViewHost.

Namespace:   Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

IWpfTextViewMargin^ CreateMargin(
	IWpfTextViewHost^ wpfTextViewHost,
	IWpfTextViewMargin^ marginContainer
)

Parameters

wpfTextViewHost
Type: Microsoft.VisualStudio.Text.Editor::IWpfTextViewHost^

The IWpfTextViewHost for which to create the IWpfTextViewMargin.

marginContainer
Type: Microsoft.VisualStudio.Text.Editor::IWpfTextViewMargin^

The margin that will contain the newly-created margin.

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

Return to top
Show: