ElementReferenceExtensions.FocusAsync Método

Definición

Sobrecargas

FocusAsync(ElementReference)

Proporciona el foco a un elemento dado su ElementReference.

FocusAsync(ElementReference, Boolean)

Proporciona el foco a un elemento dado su ElementReference.

FocusAsync(ElementReference)

Source:
ElementReferenceExtensions.cs
Source:
ElementReferenceExtensions.cs
Source:
ElementReferenceExtensions.cs
Source:
ElementReferenceExtensions.cs

Proporciona el foco a un elemento dado su 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

Referencia al elemento al que se va a centrar.

Devoluciones

que ValueTask representa la operación de enfoque asincrónica.

Se aplica a

FocusAsync(ElementReference, Boolean)

Source:
ElementReferenceExtensions.cs
Source:
ElementReferenceExtensions.cs
Source:
ElementReferenceExtensions.cs

Proporciona el foco a un elemento dado su 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

Referencia al elemento al que se va a centrar.

preventScroll
Boolean

Valor Boolean que indica si el explorador debe desplazarse por el documento para que el elemento recién centrado se vea. Un valor false para preventScroll (valor predeterminado) significa que el explorador desplazará el elemento a la vista después de centrarlo. Si preventScroll se establece en true, no se producirá ningún desplazamiento.

Devoluciones

que ValueTask representa la operación de enfoque asincrónica.

Se aplica a