共用方式為


IRtfBuilderService.GenerateRtf 方法 (NormalizedSnapshotSpanCollection, ITextView)

取得 RTF 字串,這個字串包含延伸的格式化文字。

命名空間:  Microsoft.VisualStudio.Text.Formatting
組件:  Microsoft.VisualStudio.Text.UI.Wpf (在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)

語法

'宣告
Function GenerateRtf ( _
    spans As NormalizedSnapshotSpanCollection, _
    textView As ITextView _
) As String
string GenerateRtf(
    NormalizedSnapshotSpanCollection spans,
    ITextView textView
)
String^ GenerateRtf(
    NormalizedSnapshotSpanCollection^ spans, 
    ITextView^ textView
)
abstract GenerateRtf : 
        spans:NormalizedSnapshotSpanCollection * 
        textView:ITextView -> string
function GenerateRtf(
    spans : NormalizedSnapshotSpanCollection, 
    textView : ITextView
) : String

參數

傳回值

類型:String
Rtf 格式的資料。

備註

產生的 RTF 文字為基礎的順序在查核行程的快照集的 span,具有的特性和格式設定內容的textView。

快照集跨越皆必須屬於textView。 將放置新的一行 」 已經內含 「 rtf 關鍵字之間提供SnapshotSpans。

.NET Framework 安全性

請參閱

參考

IRtfBuilderService 介面

GenerateRtf 多載

Microsoft.VisualStudio.Text.Formatting 命名空間