FormattedText::SetForegroundBrush Method (Brush^, Int32, Int32)
.NET Framework (current version)
PresentationCore (in PresentationCore.dll)
The brush to use for the text foreground.
The start index of the initial character to apply the foreground brush to.
The number of characters to apply the foreground brush to.
To set the foreground brush for the entire text string, use the SetForegroundBrush method.
The following example creates a FormattedText object and then applies several formatting styles to the text, including SetForegroundBrush.
No code example is currently available or this language may not be supported.
Return to top
Available since 3.0