TextFormattingRunProperties.SetForegroundBrush(Brush) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a new TextFormattingRunProperties with the properties of this one
but with the new foreground Brush set to brush
.
public:
Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ SetForegroundBrush(System::Windows::Media::Brush ^ brush);
public Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties SetForegroundBrush (System.Windows.Media.Brush brush);
member this.SetForegroundBrush : System.Windows.Media.Brush -> Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
Public Function SetForegroundBrush (brush As Brush) As TextFormattingRunProperties
Parameters
- brush
- Brush
The new foreground brush.
Returns
The TextFormattingRunProperties.
Exceptions
brush
is null.
Remarks
The brush is frozen by this method.