Table of Contents

Class BoundingBox

Namespace
PuppeteerSharp
Assembly
PuppeteerSharp.dll

Bounding box data returned by BoundingBoxAsync().

public class BoundingBox : IEquatable<BoundingBox>
Inheritance
BoundingBox
Implements
Derived

Constructors

BoundingBox()

Initializes a new instance of the BoundingBox class.

public BoundingBox()

BoundingBox(decimal, decimal, decimal, decimal)

Initializes a new instance of the BoundingBox class.

public BoundingBox(decimal x, decimal y, decimal width, decimal height)

Parameters

x decimal

The x coordinate.

y decimal

The y coordinate.

width decimal

Width.

height decimal

Height.

Properties

Height

The height of the element in pixels.

public decimal Height { get; set; }

Property Value

decimal

The height.

Width

The width of the element in pixels.

public decimal Width { get; set; }

Property Value

decimal

The width.

X

The x coordinate of the element in pixels.

public decimal X { get; set; }

Property Value

decimal

The x.

Y

The y coordinate of the element in pixels.

public decimal Y { get; set; }

Property Value

decimal

The y.

Methods

Equals(BoundingBox)

Determines whether the specified BoundingBox is equal to the current BoundingBox.

public bool Equals(BoundingBox obj)

Parameters

obj BoundingBox

The BoundingBox to compare with the current BoundingBox.

Returns

bool

true if the specified BoundingBox is equal to the current BoundingBox; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.