Partager via


TextFormattingRunProperties.SetTextEffects(TextEffectCollection) Method

Definition

Gets a new TextFormattingRunProperties with the properties of this one but with the text effects set to textEffects.

public:
 Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ SetTextEffects(System::Windows::Media::TextEffectCollection ^ textEffects);
public Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties SetTextEffects (System.Windows.Media.TextEffectCollection textEffects);
member this.SetTextEffects : System.Windows.Media.TextEffectCollection -> Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
Public Function SetTextEffects (textEffects As TextEffectCollection) As TextFormattingRunProperties

Parameters

textEffects
TextEffectCollection

The new text effect collection.

Returns

The TextFormattingRunProperties.

Exceptions

textEffects is null.

Remarks

The textEffects is frozen by this method.

Applies to