Window.IsActive 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,這個值表示視窗是否在使用中。
public:
property bool IsActive { bool get(); };
C#
public bool IsActive { get; }
member this.IsActive : bool
Public ReadOnly Property IsActive As Boolean
如果視窗為使用中則為 true
,否則為 false
。 預設為 false
。
使用中視窗是使用者目前的前景視窗,具有焦點,以標題列的作用中外觀表示。 使用中視窗也會是未明確設定 Topmost 屬性之所有最上層視窗的最上層視窗。
識別碼欄位 | IsActiveProperty |
中繼資料屬性設定為 true |
無 |
產品 | 版本 |
---|---|
.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 |