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
參數
wpfTextViewHost
類型:Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost用來建立 IWpfTextViewMargin 的目標 IWpfTextViewHost。
marginContainer
類型:Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin將會包含新建之邊界的邊界。
傳回值
類型:Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin
IWpfTextViewMargin 。
備註
這個方法可能會傳回nullnull 參考 (即 Visual Basic 中的 Nothing)此IWpfTextViewMarginProvider並未用來建立此內容。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。