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)

Syntax

'Declaration
Function CreateMargin ( _
    wpfTextViewHost As IWpfTextViewHost, _
    marginContainer As IWpfTextViewMargin _
) As IWpfTextViewMargin
IWpfTextViewMargin CreateMargin(
    IWpfTextViewHost wpfTextViewHost,
    IWpfTextViewMargin marginContainer
)
IWpfTextViewMargin^ CreateMargin(
    IWpfTextViewHost^ wpfTextViewHost, 
    IWpfTextViewMargin^ marginContainer
)
abstract CreateMargin : 
        wpfTextViewHost:IWpfTextViewHost * 
        marginContainer:IWpfTextViewMargin -> IWpfTextViewMargin 
function CreateMargin(
    wpfTextViewHost : IWpfTextViewHost, 
    marginContainer : IWpfTextViewMargin
) : IWpfTextViewMargin

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin
The IWpfTextViewMargin.

Remarks

This method may return nulla null reference (Nothing in Visual Basic) if this IWpfTextViewMarginProvider does not participate for this context.

.NET Framework Security

See Also

Reference

IWpfTextViewMarginProvider Interface

Microsoft.VisualStudio.Text.Editor Namespace