Click or drag to resize

DOMClientScrollIntoViewIfNeededAsync Method

Version 107.1.120
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: 107.1.120.0 (107.1.120.0)
Syntax
public Task<DevToolsMethodResponse> ScrollIntoViewIfNeededAsync(
	int? nodeId = null,
	int? backendNodeId = null,
	string objectId = null,
	Rect rect = null
)

Parameters

nodeId (Optional)
Type: SystemNullableInt32
Identifier of the node.
backendNodeId (Optional)
Type: SystemNullableInt32
Identifier of the backend node.
objectId (Optional)
Type: SystemString
JavaScript object id of the node wrapper.
rect (Optional)
Type: CefSharp.DevTools.DOMRect
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: TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also