Share via


IRtfBuilderService.GenerateRtf Method (NormalizedSnapshotSpanCollection, ITextView, String)

Gets an RTF string that contains the formatted text of the spans.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
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

Parameters

Return Value

Type: System.String
RTF data.

Remarks

The generated RTF text is based on an in-order walk of the snapshot spans, with the characteristics and formatting properties of textView. All the snapshot spans must belong to textView.

.NET Framework Security

See Also

Reference

IRtfBuilderService Interface

GenerateRtf Overload

Microsoft.VisualStudio.Text.Formatting Namespace