TextFormattingRunProperties.SetForegroundOpacity(Double) Method

Definition

Gets a new TextFormattingRunProperties with the properties of this one but with the ForegroundOpacity property set to opacity.

C++
public:
 Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ SetForegroundOpacity(double opacity);

Parameters

opacity
Double

The foreground opacity.

Returns

A TextFormattingRunProperties.

Exceptions

opacity is less than zero or bigger than 1

Applies to

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