Partilhar via


TextFormattingRunProperties.SetBackgroundBrush(Brush) Method

Definition

Gets a new TextFormattingRunProperties with the properties of this one but with the background brush set to brush.

public:
 Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ SetBackgroundBrush(System::Windows::Media::Brush ^ brush);
public Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties SetBackgroundBrush (System.Windows.Media.Brush brush);
member this.SetBackgroundBrush : System.Windows.Media.Brush -> Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
Public Function SetBackgroundBrush (brush As Brush) As TextFormattingRunProperties

Parameters

brush
Brush

The new background brush.

Returns

The TextFormattingRunProperties.

Exceptions

brush is null.

Remarks

The brush is frozen by this method.

Applies to