共用方式為


HwndHost.HasFocusWithinCore 方法

定義

取得值,這個值表示接收或其包含的其中一個元件是否有焦點。

protected:
 virtual bool HasFocusWithinCore();
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected virtual bool HasFocusWithinCore ();
protected virtual bool HasFocusWithinCore ();
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
abstract member HasFocusWithinCore : unit -> bool
override this.HasFocusWithinCore : unit -> bool
abstract member HasFocusWithinCore : unit -> bool
override this.HasFocusWithinCore : unit -> bool
Protected Overridable Function HasFocusWithinCore () As Boolean

傳回

Boolean

如果接收或其包含的其中一個元件有焦點則為 true,否則為 false

屬性

適用於

另請參閱