JsExtensionsGetPositionAsync Method

Asynchronously retrieves the position (left and top offsets) of a specified element.

Definition

Namespace: MobileTrack.Web.Portal.Components.Dashboard.Internal
Assembly: MobileTrack.Web.Portal (in MobileTrack.Web.Portal.exe) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public static ValueTask<PointF> GetPositionAsync(
	this IJSRuntime js,
	ElementReference element
)

Parameters

js  IJSRuntime
The JavaScript runtime to invoke the script.
element  ElementReference
The element whose position is to be retrieved.

Return Value

ValueTaskPointF
A tuple representing the left and top offsets of the element.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IJSRuntime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also