Visual.VisualOpacity 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 Visual 的不透明度。
public: property double VisualOpacity { protected public:
double get(); protected:
void set(double value); };
C#
public double VisualOpacity { protected internal get; protected set; }
member this.VisualOpacity : double with get, set
Public Property VisualOpacity As Double
視覺物件的不透明度值。
不透明度 Visual 的值會以介於 0 到 1 之間的值表示。 值為 0 表示專案完全透明,而值為 1 表示元素完全不透明。 值為 0.5 表示元素為 50% 不透明。 小於 0 的值會被視為 0;大於 1 的值會被視為 1。
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
Windows Desktop | 3.0, 3.1, 5, 6, 7 |