Compartilhar via


TextFormattingRunProperties.SetBackgroundOpacity(Double) Method

Definition

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

public:
 Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ SetBackgroundOpacity(double opacity);
public Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties SetBackgroundOpacity (double opacity);
member this.SetBackgroundOpacity : double -> Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
Public Function SetBackgroundOpacity (opacity As Double) As TextFormattingRunProperties

Parameters

opacity
Double

The background opacity.

Returns

A TextFormattingRunProperties.

Exceptions

opacity is less than zero or bigger than 1

Applies to