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 表單將不會處於分層模式,這會改善表單的顯示效能。

適用於