TextFormattingRunProperties.SetBackground(Color) Method

Definition

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

C++
public:
 Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ SetBackground(System::Windows::Media::Color background);

Parameters

background
Color

The new background color.

Returns

The TextFormattingRunProperties.

Remarks

The background brush is changed by this method.

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022