TextFormattingRunProperties::SetForeground Method (Color)

 

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

Namespace:   Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

public:
TextFormattingRunProperties^ SetForeground(
	Color foreground
)

Parameters

foreground
Type: System.Windows.Media::Color

The new foreground color.

The foreground brush is changed by this method.

Return to top
Show: