Partager via


TextFormattingRunProperties.ForegroundOpacity Property

Gets the opacity of the foreground.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Public ReadOnly Property ForegroundOpacity As Double
public double ForegroundOpacity { get; }
public:
property double ForegroundOpacity {
    double get ();
}
member ForegroundOpacity : float with get
function get ForegroundOpacity () : double

Property Value

Type: Double
The opacity of the foreground.

Remarks

Returns 1.0 if ForegroundOpacityEmpty is true.

.NET Framework Security

See Also

Reference

TextFormattingRunProperties Class

Microsoft.VisualStudio.Text.Formatting Namespace