Click or drag to resize

Rectangle Structure

Stores a set of four values that represent the location and size of a rectangle.
Inheritance Hierarchy
SystemObject
  SystemValueType
    SautinSoft.Excel.DrawingRectangle

Namespace: SautinSoft.Excel.Drawing
Assembly: SautinSoft.Excel (in SautinSoft.Excel.dll) Version: 2026.3.5
Syntax
public struct Rectangle : IEquatable<Rectangle>

The Rectangle type exposes the following members.

Constructors
 NameDescription
Public methodRectangle(Double, Double, Double, Double) Initializes a new instance of the Rectangle struct.
Public methodRectangle(Double, Double, Double, Double, LengthUnit) Initializes a new instance of the Rectangle struct.
Top
Properties
 NameDescription
Public propertyBottom Gets the y-coordinate in points that is the sum of the Top and Height property values of this Rectangle structure.
Public propertyHeight Gets or sets the height in points of this Rectangle structure.
Public propertyLeft Gets the x-coordinate in points of the left edge of this Rectangle structure.
Public propertyLocation Gets coordinates of the upper-left corner of this Rectangle structure.
Public propertyRight Gets the x-coordinate in points that is the sum of Left and Width property values of this Rectangle structure.
Public propertyTop Gets the y-coordinate in points of the top edge of this Rectangle structure.
Public propertyWidth Gets or sets the width in points of this Rectangle structure.
Top
Methods
 NameDescription
Public methodEquals(Object) Determines whether the specified Object is equal to this Rectangle instance.
(Overrides ValueTypeEquals(Object))
Public methodEquals(Rectangle) Determines whether the other Rectangle is equal to this Rectangle instance.
Public methodGetHashCode Returns a hash code for this Rectangle instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToString Returns the value as string, in such format: L:23.232; T:0.47; W:22.553; H:99.23243.
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(Rectangle, Rectangle) Determines whether first and second Rectangles are equal.
Public operatorStatic memberInequality(Rectangle, Rectangle) Determines whether first and second Rectangles are not equal.
Top
See Also