Udostępnij za pośrednictwem


Brush.Opacity Property

Definition

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