ContentElement.MoveFocus(TraversalRequest) ContentElement.MoveFocus(TraversalRequest) ContentElement.MoveFocus(TraversalRequest) ContentElement.MoveFocus(TraversalRequest) Method

定義

嘗試將焦點從這個項目移至另一個項目。Attempts to move focus from this element to another element. 移動焦點的方向是由指引方向所指定,該指引方向是在這個項目之視覺化父代的組織內解譯。The direction to move focus is specified by a guidance direction, which is interpreted within the organization of the visual parent for this element.

public:
 virtual bool MoveFocus(System::Windows::Input::TraversalRequest ^ request);
public virtual bool MoveFocus (System.Windows.Input.TraversalRequest request);
abstract member MoveFocus : System.Windows.Input.TraversalRequest -> bool
override this.MoveFocus : System.Windows.Input.TraversalRequest -> bool
Public Overridable Function MoveFocus (request As TraversalRequest) As Boolean

參數

request
TraversalRequest TraversalRequest TraversalRequest TraversalRequest

包含屬性的周遊要求,該屬性指出在現有定位順序中周遊的模式,或以視覺化方式移動的方向。A traversal request, which contains a property that indicates either a mode to traverse in existing tab order, or a direction to move visually.

傳回

如果已執行要求的周遊則為 true,否則為 falsetrue if the requested traversal was performed; otherwise, false.

備註

請確定您檢查傳回的值,這個方法。Make sure you check the return value of this method. 傳回值為false如果周遊時碰到控制項的組合所定義的定位停駐點,並周遊要求並未要求要包裝,可能會傳回。A return value of false might be returned if the traversal runs into a tab stop that is defined by a control's composition, and the traversal request did not request to wrap.

適用於

另請參閱