Share via


TextFormattingRunProperties.SetForegroundBrush(Brush) Method

Definition

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

brushis null.

Remarks

The brush is frozen by this method.

Applies to