Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets a new TextFormattingRunProperties with the BackgroundOpacity 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
'Declaration
Public Function SetBackgroundOpacity ( _
opacity As Double _
) As TextFormattingRunProperties
public TextFormattingRunProperties SetBackgroundOpacity(
double opacity
)
public:
TextFormattingRunProperties^ SetBackgroundOpacity(
double opacity
)
member SetBackgroundOpacity :
opacity:float -> TextFormattingRunProperties
public function SetBackgroundOpacity(
opacity : double
) : TextFormattingRunProperties
Parameters
- opacity
Type: System.Double
The background 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.