Struct NpgsqlBox
- Namespace
- NpgsqlTypes
- Assembly
- Npgsql.dll
Represents a PostgreSQL box type.
public struct NpgsqlBox : IEquatable<NpgsqlBox>
- Implements
- Inherited Members
Remarks
Constructors
NpgsqlBox(NpgsqlPoint, NpgsqlPoint)
public NpgsqlBox(NpgsqlPoint upperRight, NpgsqlPoint lowerLeft)
Parameters
upperRight
NpgsqlPointlowerLeft
NpgsqlPoint
NpgsqlBox(double, double, double, double)
public NpgsqlBox(double top, double right, double bottom, double left)
Parameters
Properties
Bottom
public double Bottom { get; }
Property Value
Height
public double Height { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
Left
public double Left { get; }
Property Value
LowerLeft
public NpgsqlPoint LowerLeft { get; set; }
Property Value
Right
public double Right { get; }
Property Value
Top
public double Top { get; }
Property Value
UpperRight
public NpgsqlPoint UpperRight { get; set; }
Property Value
Width
public double Width { get; }
Property Value
Methods
Equals(NpgsqlBox)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(NpgsqlBox other)
Parameters
other
NpgsqlBoxAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe 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
Returns
operator !=(NpgsqlBox, NpgsqlBox)
public static bool operator !=(NpgsqlBox x, NpgsqlBox y)