Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FormattedText.SetForegroundBrush Method

 
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 used for drawing text.

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

NameDescription
System_CAPS_pubmethodSetForegroundBrush(Brush)

Changes the foreground Brush for an entire FormattedText object.

System_CAPS_pubmethodSetForegroundBrush(Brush, Int32, Int32)

Changes the foreground Brush for specified text within a FormattedText object.

Return to top
Show:
© 2018 Microsoft