IWpfTextViewMarginProvider::CreateMargin Method (IWpfTextViewHost^, IWpfTextViewMargin^)
Visual Studio 2015
Creates an IWpfTextViewMargin for the given IWpfTextViewHost.
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: