共用方式為


Form.AllowTransparency 屬性

定義

取得或設定一個值,表示表單的不透明度是否可調整。

public:
 property bool AllowTransparency { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(false)]
public bool AllowTransparency { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.AllowTransparency : bool with get, set
Public Property AllowTransparency As Boolean

屬性值

true如果形式的不透明度可以改變;否則,。 false

屬性

備註

若 被Opacity更改,此屬性會自動設為 。true 當表單的不透明度是用 屬性 Opacity 設定的時,表單會在表單上疊加物件。 如果你把屬性設 AllowTransparency 為 , false 表單就不會處於分層模式,這會提升表單的顯示效能。

適用於