TextFormattingRunProperties.SetTextEffects Method
Gets a new TextFormattingRunProperties with the properties of this one but with the text effects set to the specified text effects.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'Declaração
Public Function SetTextEffects ( _
textEffects As TextEffectCollection _
) As TextFormattingRunProperties
public TextFormattingRunProperties SetTextEffects(
TextEffectCollection textEffects
)
public:
TextFormattingRunProperties^ SetTextEffects(
TextEffectCollection^ textEffects
)
member SetTextEffects :
textEffects:TextEffectCollection -> TextFormattingRunProperties
public function SetTextEffects(
textEffects : TextEffectCollection
) : TextFormattingRunProperties
Parameters
- textEffects
Type: System.Windows.Media.TextEffectCollection
The new text effect collection.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
The TextFormattingRunProperties.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | textEffects is nulla null reference (Nothing in Visual Basic). |
Remarks
The textEffects 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.