ElementReferenceExtensions.FocusAsync Metoda

Definicja

Przeciążenia

FocusAsync(ElementReference)

Zwraca fokus na elemecie, biorąc pod uwagę jego element ElementReference.

FocusAsync(ElementReference, Boolean)

Zwraca fokus na elemecie, biorąc pod uwagę jego element ElementReference.

FocusAsync(ElementReference)

Zwraca fokus na elemecie, biorąc pod uwagę jego element 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

Parametry

elementReference
ElementReference

Odwołanie do elementu do fokusu.

Zwraca

Reprezentujący ValueTask asynchroniczną operację koncentracji uwagi.

Dotyczy

FocusAsync(ElementReference, Boolean)

Zwraca fokus na elemecie, biorąc pod uwagę jego element 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

Parametry

elementReference
ElementReference

Odwołanie do elementu do fokusu.

preventScroll
Boolean

Wartość wskazująca Boolean , czy przeglądarka powinna przewijać dokument, aby przełączyć nowo skoncentrowany element do widoku. Wartość false dla elementu preventScroll (wartość domyślna) oznacza, że przeglądarka przewinie element do widoku po jego ustawieniu. Jeśli ustawienie preventScroll ma wartość true, nie nastąpi przewijanie.

Zwraca

Reprezentujący ValueTask asynchroniczną operację koncentracji uwagi.

Dotyczy