TextFormattingRunProperties::SetBackgroundOpacity Method (Double)

 

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)

public:
TextFormattingRunProperties^ SetBackgroundOpacity(
	double opacity
)

Parameters

opacity
Type: System::Double

The background opacity.

Exception Condition
ArgumentOutOfRangeException

opacity is less than zero or greater than one.

Return to top
Show: