共用方式為


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

備註

這個方法可能會傳回nullnull 參考 (即 Visual Basic 中的 Nothing)此IWpfTextViewMarginProvider並未用來建立此內容。

.NET Framework 安全性

請參閱

參考

IWpfTextViewMarginProvider 介面

Microsoft.VisualStudio.Text.Editor 命名空間