Export (0) Print
Expand All

IWpfTextViewMarginProvider.CreateMargin Method

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.

Show:
© 2015 Microsoft