TextFormattingRunProperties::SetBackgroundBrush Method (Brush^)

 

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

Namespace:   Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

public:
TextFormattingRunProperties^ SetBackgroundBrush(
	Brush^ brush
)

Parameters

brush
Type: System.Windows.Media::Brush^

The new background brush.

Exception Condition
ArgumentNullException

brush is null.

The brush is frozen by this method.

Return to top
Show: