IKeyboardInputSink.HasFocusWithin IKeyboardInputSink.HasFocusWithin IKeyboardInputSink.HasFocusWithin IKeyboardInputSink.HasFocusWithin Method

定義

取得值,這個值表示接收或其包含的其中一個元件是否有焦點。Gets a value that indicates whether the sink or one of its contained components has focus.

public:
 bool HasFocusWithin();
public bool HasFocusWithin ();
abstract member HasFocusWithin : unit -> bool
Public Function HasFocusWithin () As Boolean

傳回

如果接收或其包含的其中一個元件有焦點則為 true,否則為 falsetrue if the sink or one of its contained components has focus; otherwise, false.

備註

這個方法是必要的轉送TranslateAccelerator內具有焦點的子元件的呼叫TranslateAccelerator實作。This method is necessary for forwarding TranslateAccelerator calls to child components with focus from within the TranslateAccelerator implementation. 呼叫HasFocusWithin直到您到達特定的焦點和轉送的層級的遞迴TranslateAccelerator那里。Call HasFocusWithin recursively until you reach the level of specific focus and forward TranslateAccelerator there.

適用於

另請參閱