Skip to content

BoundingBox

Namespace: PuppeteerSharp

public class BoundingBox : IEquatable<BoundingBox>

Bounding box data returned by BoundingBoxAsync().

Inheritance: object

Implements: IEquatable<BoundingBox>

Derived: Clip

View source

public BoundingBox()

Initializes a new instance of the BoundingBox class.

View source

BoundingBox(decimal, decimal, decimal, decimal)

Section titled “BoundingBox(decimal, decimal, decimal, decimal)”
public BoundingBox(decimal x, decimal y, decimal width, decimal height)

Initializes a new instance of the BoundingBox class.

Parameters

Name Type Description
x decimal The x coordinate.
y decimal The y coordinate.
width decimal Width.
height decimal Height.

View source

public decimal Height { get; set; }

The height of the element in pixels.

Value: decimal — The height.

View source

public decimal Width { get; set; }

The width of the element in pixels.

Value: decimal — The width.

View source

public decimal X { get; set; }

The x coordinate of the element in pixels.

Value: decimal — The x.

View source

public decimal Y { get; set; }

The y coordinate of the element in pixels.

Value: decimal — The y.

View source

public bool Equals(BoundingBox obj)

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

Parameters

Name Type Description
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.

View source

public override bool Equals(object obj)

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

Parameters

Name Type Description
obj object The object to compare with the current object.

Returns: bool — <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;true&lt;/a> if the specified object is equal to the current object; otherwise, <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;false&lt;/a>.

View source

public override int GetHashCode()

Serves as the default hash function.

Returns: int — A hash code for the current object.

View source

Made with love by Dario Kondratiuk