Share via


IRtfBuilderService.GenerateRtf Method (NormalizedSnapshotSpanCollection)

Gets an RTF string containing the formatted text of the snapshot 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 _
) As String
string GenerateRtf(
    NormalizedSnapshotSpanCollection spans
)
String^ GenerateRtf(
    NormalizedSnapshotSpanCollection^ spans
)
abstract GenerateRtf : 
        spans:NormalizedSnapshotSpanCollection -> string
function GenerateRtf(
    spans : NormalizedSnapshotSpanCollection
) : 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.

.NET Framework Security

See Also

Reference

IRtfBuilderService Interface

GenerateRtf Overload

Microsoft.VisualStudio.Text.Formatting Namespace