FormattedText.SetForegroundBrush Method (Brush)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Changes the foreground Brush for an entire FormattedText object.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public void SetForegroundBrush(
	Brush foregroundBrush
)

Parameters

foregroundBrush
Type: System.Windows.Media.Brush

The brush to use for the text foreground.

This method sets the foreground brush for the entire text string. To set the foreground brush for a subset of the text string, use the SetForegroundBrush(Brush, Int32, Int32) method.

.NET Framework
Available since 3.0
Return to top
Show: