TextFormattingRunProperties.SetBackground(Color) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
public Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties SetBackground(System.Windows.Media.Color background);
member this.SetBackground : System.Windows.Media.Color -> Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
Public Function SetBackground (background As Color) As TextFormattingRunProperties
- background
- Color
The new background color.
The TextFormattingRunProperties.
The background brush is changed by this method.
Product | Versions |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |