Table of Contents

Class BoxClipRectangle

Namespace
WebDriverBiDi.BrowsingContext
Assembly
WebDriverBiDi.dll

Represents a box-based clipping rectangle for a screenshot.

public class BoxClipRectangle : ClipRectangle
Inheritance
BoxClipRectangle
Inherited Members

Constructors

BoxClipRectangle()

Initializes a new instance of the BoxClipRectangle class.

public BoxClipRectangle()

Properties

Height

Gets or sets the height of the clip rectangle.

[JsonPropertyName("height")]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
public double Height { get; set; }

Property Value

double

Type

Gets the type of clip rectangle.

[JsonPropertyName("type")]
public override string Type { get; }

Property Value

string

Width

Gets or sets the width of the clip rectangle.

[JsonPropertyName("width")]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
public double Width { get; set; }

Property Value

double

X

Gets or sets the X coordinate of the clip rectangle relative to the left edge of the area the screenshot captures: the visual viewport, or the whole document when Origin is Document.

[JsonPropertyName("x")]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
public double X { get; set; }

Property Value

double

Y

Gets or sets the Y coordinate of the clip rectangle relative to the top edge of the area the screenshot captures: the visual viewport, or the whole document when Origin is Document.

[JsonPropertyName("y")]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
public double Y { get; set; }

Property Value

double