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.

備註

需要有這個方法,才能TranslateAcceleratorTranslateAccelerator呼叫從執行中的焦點轉送到子元件。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.

適用於

另請參閱