TextFormattingRunProperties.SetForegroundOpacity(Double) 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 ForegroundOpacity property set to opacity
.
C++
public:
Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ SetForegroundOpacity(double opacity);
public Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties SetForegroundOpacity(double opacity);
member this.SetForegroundOpacity : double -> Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
Public Function SetForegroundOpacity (opacity As Double) As TextFormattingRunProperties
- opacity
- Double
The foreground opacity.
A TextFormattingRunProperties.
opacity
is less than zero or bigger than 1
Product | Versions |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |