# Struct NpgsqlBox

Namespace
  NpgsqlTypes

Assembly
  Npgsql.dll

Represents a PostgreSQL box type.

    public struct NpgsqlBox : IEquatable<NpgsqlBox>

Implements
  IEquatable<NpgsqlBox>

Inherited Members
  object.Equals(object, object)
  object.GetType()
  object.ReferenceEquals(object, object)

## Remarks

See https://www.postgresql.org/docs/current/static/datatype-geometric.html

## Constructors

### NpgsqlBox(NpgsqlPoint, NpgsqlPoint)

    public NpgsqlBox(NpgsqlPoint upperRight, NpgsqlPoint lowerLeft)

#### Parameters

`upperRight` NpgsqlPoint
`lowerLeft` NpgsqlPoint

### NpgsqlBox(double, double, double, double)

    public NpgsqlBox(double top, double right, double bottom, double left)

#### Parameters

`top` double
`right` double
`bottom` double
`left` double

## Properties

### Bottom

    public double Bottom { get; }

#### Property Value

double

### Height

    public double Height { get; }

#### Property Value

double

### IsEmpty

    public bool IsEmpty { get; }

#### Property Value

bool

### Left

    public double Left { get; }

#### Property Value

double

### LowerLeft

    public NpgsqlPoint LowerLeft { get; set; }

#### Property Value

NpgsqlPoint

### Right

    public double Right { get; }

#### Property Value

double

### Top

    public double Top { get; }

#### Property Value

double

### UpperRight

    public NpgsqlPoint UpperRight { get; set; }

#### Property Value

NpgsqlPoint

### Width

    public double Width { get; }

#### Property Value

double

## Methods

### Equals(NpgsqlBox)

Indicates whether the current object is equal to another object of the same type.

    public bool Equals(NpgsqlBox other)

#### Parameters

`other` NpgsqlBox

  An object to compare with this object.

#### Returns

bool

  true if the current object is equal to the `other` parameter; otherwise, false.

### Equals(object?)

Indicates whether this instance and a specified object are equal.

    public override bool Equals(object? obj)

#### Parameters

`obj` object

  The object to compare with the current instance.

#### Returns

bool

  true if `obj` and this instance are the same type and represent the same value; otherwise, false.

### GetHashCode()

Returns the hash code for this instance.

    public override int GetHashCode()

#### Returns

int

  A 32-bit signed integer that is the hash code for this instance.

### ToString()

Returns the fully qualified type name of this instance.

    public override string ToString()

#### Returns

string

  The fully qualified type name.

## Operators

### operator ==(NpgsqlBox, NpgsqlBox)

    public static bool operator ==(NpgsqlBox x, NpgsqlBox y)

#### Parameters

`x` NpgsqlBox
`y` NpgsqlBox

#### Returns

bool

### operator !=(NpgsqlBox, NpgsqlBox)

    public static bool operator !=(NpgsqlBox x, NpgsqlBox y)

#### Parameters

`x` NpgsqlBox
`y` NpgsqlBox

#### Returns

bool