Click or drag to resize

OverlayClientHighlightNodeAsync Method

Version 104.4.240
Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.

Namespace:  CefSharp.DevTools.Overlay
Assembly:  CefSharp (in CefSharp.dll) Version: 104.4.240.0 (104.4.240.0)
Syntax
public Task<DevToolsMethodResponse> HighlightNodeAsync(
	HighlightConfig highlightConfig,
	int? nodeId = null,
	int? backendNodeId = null,
	string objectId = null,
	string selector = null
)

Parameters

highlightConfig
Type: CefSharp.DevTools.OverlayHighlightConfig
A descriptor for the highlight appearance.
nodeId (Optional)
Type: SystemNullableInt32
Identifier of the node to highlight.
backendNodeId (Optional)
Type: SystemNullableInt32
Identifier of the backend node to highlight.
objectId (Optional)
Type: SystemString
JavaScript object id of the node to be highlighted.
selector (Optional)
Type: SystemString
Selectors to highlight relevant nodes.

Return Value

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