Struct Rect
Describes the width, height and location of a rectangle.
Implements
Namespace: Sartorius.SAF.Pdf
Assembly: Sartorius.SAF.Pdf.dll
Syntax
public struct Rect : IEquatable<Rect>
Constructors
View SourceRect(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. |
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 SourceHeight
Gets the height of the rectangle.
Declaration
public readonly double Height { get; }
Property Value
Type | Description |
---|---|
System.Double |
Left
Gets the x coordinate of the left border of the rectangle.
Declaration
public readonly double Left { get; }
Property Value
Type | Description |
---|---|
System.Double |
Top
Gets the y coordinate of the top border of the rectangle.
Declaration
public readonly double Top { get; }
Property Value
Type | Description |
---|---|
System.Double |
Width
Gets the width of the rectangle.
Declaration
public readonly double Width { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
View SourceEquals(Rect)
Declaration
public bool Equals(Rect other)
Parameters
Type | Name | Description |
---|---|---|
Rect | 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
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Operators
View SourceEquality(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 |
|
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 |
|