TextFormattingRunProperties::SetForegroundOpacity Method (Double)
Visual Studio 2015
Gets a new TextFormattingRunProperties with the properties of this one but with the ForegroundOpacity property set to the specified opacity.
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Parameters
- opacity
-
Type:
System::Double
The foreground opacity.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | opacity is less than zero or greater than one. |
Show: