DOMClientScrollIntoViewIfNeededAsync Method |
Version 111.2.70
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: 111.2.70.0 (111.2.70.0)
Syntax public Task<DevToolsMethodResponse> ScrollIntoViewIfNeededAsync(
int? nodeId = null,
int? backendNodeId = null,
string objectId = null,
Rect rect = null
)
public:
Task<DevToolsMethodResponse^>^ ScrollIntoViewIfNeededAsync(
Nullable<int> nodeId = nullptr,
Nullable<int> backendNodeId = nullptr,
String^ objectId = nullptr,
Rect^ rect = nullptr
)
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:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also