Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Brush.Opacity Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or sets the degree of opacity of a Brush.

public:
 property double Opacity { double get(); void set(double value); };
double Opacity();

void Opacity(double value);
public double Opacity { get; set; }
var double = brush.opacity;
brush.opacity = double;
Public Property Opacity As Double
<brush Opacity="double"/>

Property Value

Double

double

The value of the Opacity property is expressed as a value between 0 and 1.0. The default value is 1.0, which is full opacity. 0 is transparent opacity.

Applies to


Feedback

Was this page helpful?