TextFormattingRunProperties::SetForegroundOpacity Method (Double)

 

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)

public:
TextFormattingRunProperties^ SetForegroundOpacity(
	double opacity
)

Parameters

opacity
Type: System::Double

The foreground opacity.

Exception Condition
ArgumentOutOfRangeException

opacity is less than zero or greater than one.

Return to top
Show: