Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Gets a new TextFormattingRunProperties with the properties of this one but with the ForegroundOpacity property set to the specified opacity.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'Déclaration
Public Function SetForegroundOpacity ( _
opacity As Double _
) As TextFormattingRunProperties
public TextFormattingRunProperties SetForegroundOpacity(
double opacity
)
public:
TextFormattingRunProperties^ SetForegroundOpacity(
double opacity
)
member SetForegroundOpacity :
opacity:float -> TextFormattingRunProperties
public function SetForegroundOpacity(
opacity : double
) : TextFormattingRunProperties
Parameters
- opacity
Type: System.Double
The foreground opacity.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
A TextFormattingRunProperties.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | opacity is less than zero or greater than one. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.