共用方式為


IRtfBuilderService.GenerateRtf 方法 (NormalizedSnapshotSpanCollection, ITextView, String)

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

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

語法

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

參數

傳回值

類型:String
Rtf 格式的資料。

備註

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

.NET Framework 安全性

請參閱

參考

IRtfBuilderService 介面

GenerateRtf 多載

Microsoft.VisualStudio.Text.Formatting 命名空間