Click or drag to resize

DOMClient.ScrollIntoViewIfNeededAsync Method

Version 88.2.90
Scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.

Namespace:  CefSharp.DevTools.DOM
Assembly:  CefSharp (in CefSharp.dll) Version: 88.2.90.0 (88.2.90.0)
Syntax
public Task<DevToolsMethodResponse> ScrollIntoViewIfNeededAsync(
	Nullable<int> nodeId = null,
	Nullable<int> backendNodeId = null,
	string objectId = null,
	Rect rect = null
)

Parameters

nodeId (Optional)
Type: System.Nullable<Int32>
Identifier of the node.
backendNodeId (Optional)
Type: System.Nullable<Int32>
Identifier of the backend node.
objectId (Optional)
Type: System.String
JavaScript object id of the node wrapper.
rect (Optional)
Type: CefSharp.DevTools.DOM.Rect
The rect to be scrolled into view, relative to the node's border box, in CSS pixels.When omitted, center of the node will be used, similar to Element.scrollIntoView.

Return Value

Type: Task<DevToolsMethodResponse>
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also