Compartilhar via


ElementReferenceExtensions.FocusAsync Método

Definição

Sobrecargas

FocusAsync(ElementReference)

Dá foco a um elemento dado seu ElementReference.

FocusAsync(ElementReference, Boolean)

Dá foco a um elemento dado seu ElementReference.

FocusAsync(ElementReference)

Origem:
ElementReferenceExtensions.cs
Origem:
ElementReferenceExtensions.cs
Origem:
ElementReferenceExtensions.cs
Origem:
ElementReferenceExtensions.cs

Dá foco a um elemento dado seu 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

Parâmetros

elementReference
ElementReference

Uma referência ao elemento a ser focado.

Retornos

O ValueTask que representa a operação de foco assíncrona.

Aplica-se a

FocusAsync(ElementReference, Boolean)

Origem:
ElementReferenceExtensions.cs
Origem:
ElementReferenceExtensions.cs
Origem:
ElementReferenceExtensions.cs

Dá foco a um elemento dado seu 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

Parâmetros

elementReference
ElementReference

Uma referência ao elemento a ser focado.

preventScroll
Boolean

Um Boolean valor que indica se o navegador deve ou não rolar o documento para exibir o elemento recém-focado. Um valor de false para preventScroll (o padrão) significa que o navegador rolará o elemento para exibição depois de focalizá-lo. Se preventScroll for definido como true, nenhuma rolagem ocorrerá.

Retornos

O ValueTask que representa a operação de foco assíncrona.

Aplica-se a