TextFormattingRunProperties::SetTextDecorations Method (TextDecorationCollection^)

 

Gets a new TextFormattingRunProperties with the properties of this one but with the text decorations set to the specified text decorations.

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

public:
TextFormattingRunProperties^ SetTextDecorations(
	TextDecorationCollection^ textDecorations
)

Parameters

textDecorations
Type: System.Windows::TextDecorationCollection^

The new text decoration collection.

Exception Condition
ArgumentNullException

textDecorations is null.

The textDecorations is frozen by this method.

Return to top
Show: