Share via


IWpfTextViewMarginProvider.CreateMargin, méthode

Crée un élément IWpfTextViewMargin pour l'objet IWpfTextViewHost spécifié.

Espace de noms :  Microsoft.VisualStudio.Text.Editor
Assembly :  Microsoft.VisualStudio.Text.UI.Wpf (dans Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntaxe

'Déclaration
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

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin
Élément IWpfTextViewMargin.

Notes

Cette méthode peut retourner nullune référence null (Nothing en Visual Basic) si cet IWpfTextViewMarginProvider ne participe pas pour ce contexte.

Sécurité .NET Framework

Voir aussi

Référence

IWpfTextViewMarginProvider Interface

Microsoft.VisualStudio.Text.Editor, espace de noms