IWpfTextViewMarginProvider.CreateMargin 方法

为给定 IWpfTextViewHost 创建 IWpfTextViewMargin

命名空间:  Microsoft.VisualStudio.Text.Editor
程序集:  Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)

语法

声明
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

参数

返回值

类型:Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin
IWpfTextViewMargin

备注

,如果此 IWpfTextViewMarginProvider 不适用于此上下文中,输入此方法会返回 nullnull 引用(在 Visual Basic 中为 Nothing) 。

.NET Framework 安全性

请参阅

参考

IWpfTextViewMarginProvider 接口

Microsoft.VisualStudio.Text.Editor 命名空间