DOMSnapshotClientCaptureSnapshotAsync Method |
Version 86.0.240
Returns a document snapshot, including the full DOM tree of the root node (including iframes,
template contents, and imported documents) in a flattened array, as well as layout and
white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is
flattened.
Namespace:
CefSharp.DevTools.DOMSnapshot
Assembly:
CefSharp (in CefSharp.dll) Version: 86.0.240.0 (86.0.240.0)
Syntax public Task<CaptureSnapshotResponse> CaptureSnapshotAsync(
string[] computedStyles,
Nullable<bool> includePaintOrder = null,
Nullable<bool> includeDOMRects = null
)
public:
Task<CaptureSnapshotResponse^>^ CaptureSnapshotAsync(
array<String^>^ computedStyles,
Nullable<bool> includePaintOrder = nullptr,
Nullable<bool> includeDOMRects = nullptr
)
Parameters
- computedStyles
- Type: SystemString
Whitelist of computed styles to return. - includePaintOrder (Optional)
- Type: SystemNullableBoolean
Whether to include layout object paint orders into the snapshot. - includeDOMRects (Optional)
- Type: SystemNullableBoolean
Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot
Return Value
Type:
TaskCaptureSnapshotResponsereturns System.Threading.Tasks.Task<CaptureSnapshotResponse>
See Also