Hyperlink.Focus(FocusState) Method

Definition

Attempts to set the focus on the hyperlink.

public:
 virtual bool Focus(FocusState value) = Focus;
bool Focus(FocusState const& value);
public bool Focus(FocusState value);
function focus(value)
Public Function Focus (value As FocusState) As Boolean

Parameters

value
FocusState

Specifies how focus was set, as a value of the enumeration.

Returns

Boolean

bool

true if focus was set to the hyperlink, or focus was already on the hyperlink. false if the hyperlink is not focusable.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

For more info, see Control.Focus.

Applies to

See also