Click or drag to resize

DOMClientScrollIntoViewIfNeededAsync Method

Version 130.1.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.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
public Task<DevToolsMethodResponse> ScrollIntoViewIfNeededAsync(
	int? nodeId = null,
	int? backendNodeId = null,
	string objectId = null,
	Rect rect = null
)

Parameters

nodeId  NullableInt32  (Optional)
Identifier of the node.
backendNodeId  NullableInt32  (Optional)
Identifier of the backend node.
objectId  String  (Optional)
JavaScript object id of the node wrapper.
rect  Rect  (Optional)
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

TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also