IWpfTextViewMarginProvider.CreateMargin 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 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.