Show / Hide Table of Contents

Struct NpgsqlBox

Represents a PostgreSQL box type.

Implements
System.IEquatable<NpgsqlBox>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: NpgsqlTypes
Assembly: Npgsql.dll
Syntax
public struct NpgsqlBox : IEquatable<NpgsqlBox>
Remarks

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

Constructors

NpgsqlBox(NpgsqlPoint, NpgsqlPoint)

Declaration
public NpgsqlBox(NpgsqlPoint upperRight, NpgsqlPoint lowerLeft)
Parameters
Type Name Description
NpgsqlPoint upperRight
NpgsqlPoint lowerLeft

NpgsqlBox(Double, Double, Double, Double)

Declaration
public NpgsqlBox(double top, double right, double bottom, double left)
Parameters
Type Name Description
System.Double top
System.Double right
System.Double bottom
System.Double left

Properties

Bottom

Declaration
public double Bottom { get; }
Property Value
Type Description
System.Double

Height

Declaration
public double Height { get; }
Property Value
Type Description
System.Double

IsEmpty

Declaration
public bool IsEmpty { get; }
Property Value
Type Description
System.Boolean

Left

Declaration
public double Left { get; }
Property Value
Type Description
System.Double

LowerLeft

Declaration
public NpgsqlPoint LowerLeft { get; set; }
Property Value
Type Description
NpgsqlPoint

Right

Declaration
public double Right { get; }
Property Value
Type Description
System.Double

Top

Declaration
public double Top { get; }
Property Value
Type Description
System.Double

UpperRight

Declaration
public NpgsqlPoint UpperRight { get; set; }
Property Value
Type Description
NpgsqlPoint

Width

Declaration
public double Width { get; }
Property Value
Type Description
System.Double

Methods

Equals(NpgsqlBox)

Declaration
public bool Equals(NpgsqlBox other)
Parameters
Type Name Description
NpgsqlBox other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()

Parse(String)

Declaration
public static NpgsqlBox Parse(string s)
Parameters
Type Name Description
System.String s
Returns
Type Description
NpgsqlBox

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()

Operators

Equality(NpgsqlBox, NpgsqlBox)

Declaration
public static bool operator ==(NpgsqlBox x, NpgsqlBox y)
Parameters
Type Name Description
NpgsqlBox x
NpgsqlBox y
Returns
Type Description
System.Boolean

Inequality(NpgsqlBox, NpgsqlBox)

Declaration
public static bool operator !=(NpgsqlBox x, NpgsqlBox y)
Parameters
Type Name Description
NpgsqlBox x
NpgsqlBox y
Returns
Type Description
System.Boolean

Implements

System.IEquatable<T>
Back to top Generated by DocFX