DOMSnapshotClientCaptureSnapshotAsync Method |
Version 106.0.290
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: 106.0.290.0 (106.0.290.0)
Syntax public Task<CaptureSnapshotResponse> CaptureSnapshotAsync(
string[] computedStyles,
bool? includePaintOrder = null,
bool? includeDOMRects = null,
bool? includeBlendedBackgroundColors = null,
bool? includeTextColorOpacities = null
)
public:
Task<CaptureSnapshotResponse^>^ CaptureSnapshotAsync(
array<String^>^ computedStyles,
Nullable<bool> includePaintOrder = nullptr,
Nullable<bool> includeDOMRects = nullptr,
Nullable<bool> includeBlendedBackgroundColors = nullptr,
Nullable<bool> includeTextColorOpacities = 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 - includeBlendedBackgroundColors (Optional)
- Type: SystemNullableBoolean
Whether to include blended background colors in the snapshot (default: false).Blended background color is achieved by blending background colors of all elementsthat overlap with the current element. - includeTextColorOpacities (Optional)
- Type: SystemNullableBoolean
Whether to include text color opacity in the snapshot (default: false).An element might have the opacity property set that affects the text color of the element.The final text color opacity is computed based on the opacity of all overlapping elements.
Return Value
Type:
TaskCaptureSnapshotResponsereturns System.Threading.Tasks.Task<CaptureSnapshotResponse>
See Also