BoundingBox
Namespace: PuppeteerSharp
public class BoundingBox : IEquatable<BoundingBox>Bounding box data returned by BoundingBoxAsync().
Inheritance: object
Implements: IEquatable<BoundingBox>
Derived: Clip
Constructors
Section titled “Constructors”BoundingBox()
Section titled “BoundingBox()”public BoundingBox()Initializes a new instance of the BoundingBox class.
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. |
Properties
Section titled “Properties”Height
Section titled “Height”public decimal Height { get; set; }The height of the element in pixels.
Value: decimal — The height.
public decimal Width { get; set; }The width of the element in pixels.
Value: decimal — The width.
public decimal X { get; set; }The x coordinate of the element in pixels.
Value: decimal — The x.
public decimal Y { get; set; }The y coordinate of the element in pixels.
Value: decimal — The y.
Methods
Section titled “Methods”Equals(BoundingBox)
Section titled “Equals(BoundingBox)”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.
Equals(object)
Section titled “Equals(object)”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">true</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">false</a>.
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Serves as the default hash function.
Returns: int — A hash code for the current object.
Made with love by Dario Kondratiuk