TextFormattingRunProperties.SetForeground(Color) Method

Definition

Gets a new TextFormattingRunProperties with the properties of this one but with the foreground set to foreground.

public:
 Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ SetForeground(System::Windows::Media::Color foreground);
public Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties SetForeground (System.Windows.Media.Color foreground);
member this.SetForeground : System.Windows.Media.Color -> Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
Public Function SetForeground (foreground As Color) As TextFormattingRunProperties

Parameters

foreground
Color

The new foreground color.

Returns

The TextFormattingRunProperties.

Remarks

The foreground brush is changed by this method.

Applies to