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
'Dichiarazione
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
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.