Visual.VisualOpacity Visual.VisualOpacity Visual.VisualOpacity Visual.VisualOpacity Property

定義

取得或設定 Visual 的不透明度。Gets or sets the opacity of the Visual.

public:  property double VisualOpacity {  protected public:
double get(); protected:
 void set(double value); };
public double VisualOpacity { protected internal get; protected set; }
member this.VisualOpacity : double with get, set
Public Property VisualOpacity As Double

屬性值

視覺物件的不透明度值。The opacity value of the visual.

備註

不透明度值Visual會以介於 0 和 1 之間的值。The value of the opacity of the Visual is expressed as a value between 0 and 1. 值為 0 表示的項目是完全透明,而值為 1 表示元素完全不透明。A value of 0 indicates that the element is completely transparent, whereas a value of 1 indicates that the element is completely opaque. 值為 0.5 表示的項目是 50%不透明。A value of 0.5 indicates that the element is 50 percent opaque. 小於 0 的值視為 0;大於 1 的值會視為 1。Values that are less than 0 are treated as 0; values that are greater than 1 are treated as 1.

適用於