TextFormattingRunProperties::SetTextDecorations Method (TextDecorationCollection^)
Visual Studio 2015
Gets a new TextFormattingRunProperties with the properties of this one but with the text decorations set to the specified text decorations.
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.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting::TextFormattingRunProperties^| Exception | Condition |
|---|---|
| ArgumentNullException | textDecorations is null. |
The textDecorations is frozen by this method.
Show: