TextFormattingRunProperties::SetBackgroundBrush Method (Brush^)
Visual Studio 2015
Gets a new TextFormattingRunProperties with the properties of this one but with the background brush set to the specified brush.
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Parameters
- brush
-
Type:
System.Windows.Media::Brush^
The new background brush.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting::TextFormattingRunProperties^| Exception | Condition |
|---|---|
| ArgumentNullException | brush is null. |
The brush is frozen by this method.
Show: