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)

String^ GenerateRtf(
	NormalizedSnapshotSpanCollection^ spans
)

Parameters

spans
Type: Microsoft.VisualStudio.Text::NormalizedSnapshotSpanCollection^

The collection of snapshot spans.

Return Value

Type: System::String^

RTF data.

The generated RTF text is based on an in-order walk of the snapshot spans.

Return to top
Show: