TextFormattingRunProperties.SetTextDecorations Method
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)
Syntax
'Declaração
Public Function SetTextDecorations ( _
textDecorations As TextDecorationCollection _
) As TextFormattingRunProperties
public TextFormattingRunProperties SetTextDecorations(
TextDecorationCollection textDecorations
)
public:
TextFormattingRunProperties^ SetTextDecorations(
TextDecorationCollection^ textDecorations
)
member SetTextDecorations :
textDecorations:TextDecorationCollection -> TextFormattingRunProperties
public function SetTextDecorations(
textDecorations : TextDecorationCollection
) : TextFormattingRunProperties
Parameters
- textDecorations
Type: System.Windows.TextDecorationCollection
The new text decoration collection.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
The TextFormattingRunProperties.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | textDecorations is nulla null reference (Nothing in Visual Basic). |
Remarks
The textDecorations is frozen by this method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.