FormattedText.SetForegroundBrush Method (Brush)

 

Changes the foreground Brush for an entire FormattedText object.

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

Public Sub SetForegroundBrush (
	foregroundBrush As Brush
)

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: