ElementReferenceExtensions.FocusAsync メソッド

定義

オーバーロード

FocusAsync(ElementReference)

を指定した要素にフォーカスを ElementReference与えます。

FocusAsync(ElementReference, Boolean)

を指定した要素にフォーカスを ElementReference与えます。

FocusAsync(ElementReference)

を指定した要素にフォーカスを ElementReference与えます。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::ValueTask FocusAsync(Microsoft::AspNetCore::Components::ElementReference elementReference);
public static System.Threading.Tasks.ValueTask FocusAsync (this Microsoft.AspNetCore.Components.ElementReference elementReference);
static member FocusAsync : Microsoft.AspNetCore.Components.ElementReference -> System.Threading.Tasks.ValueTask
<Extension()>
Public Function FocusAsync (elementReference As ElementReference) As ValueTask

パラメーター

elementReference
ElementReference

フォーカスする要素への参照。

戻り値

ValueTask非同期フォーカス操作を表す 。

適用対象

FocusAsync(ElementReference, Boolean)

を指定した要素にフォーカスを ElementReference与えます。

public static System.Threading.Tasks.ValueTask FocusAsync (this Microsoft.AspNetCore.Components.ElementReference elementReference, bool preventScroll);
static member FocusAsync : Microsoft.AspNetCore.Components.ElementReference * bool -> System.Threading.Tasks.ValueTask
<Extension()>
Public Function FocusAsync (elementReference As ElementReference, preventScroll As Boolean) As ValueTask

パラメーター

elementReference
ElementReference

フォーカスする要素への参照。

preventScroll
Boolean

Booleanブラウザーでドキュメントをスクロールして、新しくフォーカスされた要素を表示するかどうかを示す値。 preventScroll (既定値) の値が false の場合、ブラウザーはフォーカス後に要素をスクロールして表示します。 preventScroll が true に設定されている場合、スクロールは行われません。

戻り値

ValueTask非同期フォーカス操作を表す 。

適用対象