Show / Hide Table of Contents

Struct Rect

Describes the width, height and location of a rectangle.

Implements
System.IEquatable<Rect>
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Sartorius.SAF.Pdf
Assembly: Sartorius.SAF.Pdf.dll
Syntax
public struct Rect : IEquatable<Rect>

Constructors

View Source

Rect(PageSize)

Initializes a new instance of the Rect structure with the specified size.

Declaration
public Rect(PageSize pageSize)
Parameters
Type Name Description
PageSize pageSize

The size of the page.

View Source

Rect(Double, Double, Double, Double)

Initializes a new instance of the Rect structure with the specified values.

Declaration
public Rect(double left, double top, double width, double height)
Parameters
Type Name Description
System.Double left

The x coordinate of the left border of the rectangle.

System.Double top

The y coordinate of the top border of the rectangle. rectangle.

System.Double width

The width of the rectangle.

System.Double height

The height of the rectangle.

Properties

View Source

Height

Gets the height of the rectangle.

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

Left

Gets the x coordinate of the left border of the rectangle.

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

Top

Gets the y coordinate of the top border of the rectangle.

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

Width

Gets the width of the rectangle.

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

Methods

View Source

Equals(Rect)

Declaration
public bool Equals(Rect other)
Parameters
Type Name Description
Rect other
Returns
Type Description
System.Boolean
View Source

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)
View Source

GetHashCode()

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

Operators

View Source

Equality(Rect, Rect)

Compares two instances of Rect for equality.

Declaration
public static bool operator ==(Rect left, Rect right)
Parameters
Type Name Description
Rect left

The first instance of Rect to compare.

Rect right

The second instance of Rect to compare.

Returns
Type Description
System.Boolean

true if the two instances of Rect are equal; otherwise false.

View Source

Inequality(Rect, Rect)

Compares two instances of Rect for inequality.

Declaration
public static bool operator !=(Rect left, Rect right)
Parameters
Type Name Description
Rect left

The first instance of Rect to compare.

Rect right

The second instance of Rect to compare.

Returns
Type Description
System.Boolean

true if the two instances of Rect are not equal; otherwise false.

Implements

System.IEquatable<T>

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX