Struct RectangleF
Inherited Members
Namespace: Syncfusion.Drawing
Assembly: Syncfusion.Compression.NET.dll
Syntax
public struct RectangleF
Constructors
RectangleF(PointF, SizeF)
Initializes a new instance of the RectangleF class.
Declaration
public RectangleF(PointF location, SizeF size)
Parameters
| Type | Name | Description |
|---|---|---|
| PointF | location | The location. |
| SizeF | size | The size. |
RectangleF(float, float, float, float)
Initializes a new instance of the RectangleF class.
Declaration
public RectangleF(float x, float y, float width, float height)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | The horizontal location to get the starting point |
| float | y | The vertical location to get the starting point |
| float | width | The width. |
| float | height | The height. |
Fields
Empty
Declaration
public static readonly RectangleF Empty
Field Value
| Type |
|---|
| RectangleF |
Properties
Bottom
Gets the bottom.
Declaration
public float Bottom { get; }
Property Value
| Type | Description |
|---|---|
| float | The bottom. |
Height
Gets or sets the height.
Declaration
public float Height { get; set; }
Property Value
| Type | Description |
|---|---|
| float | The height. |
Left
Gets the left.
Declaration
public float Left { get; }
Property Value
| Type | Description |
|---|---|
| float | The left. |
Location
Gets or sets the location.
Declaration
public PointF Location { get; set; }
Property Value
| Type | Description |
|---|---|
| PointF | The location. |
Right
Gets the right.
Declaration
public float Right { get; }
Property Value
| Type | Description |
|---|---|
| float | The right. |
Size
Gets or sets the size.
Declaration
public SizeF Size { get; set; }
Property Value
| Type | Description |
|---|---|
| SizeF | The size. |
Top
Gets the top.
Declaration
public float Top { get; }
Property Value
| Type | Description |
|---|---|
| float | The top. |
Width
Gets or sets the width.
Declaration
public float Width { get; set; }
Property Value
| Type | Description |
|---|---|
| float | The width. |
X
Gets or sets the X.
Declaration
public float X { get; set; }
Property Value
| Type | Description |
|---|---|
| float | The X. |
Y
Gets or sets the Y.
Declaration
public float Y { get; set; }
Property Value
| Type | Description |
|---|---|
| float | The Y. |
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | The |
FromLTRB(float, float, float, float)
Froms the LTRB.
Declaration
public static RectangleF FromLTRB(float left, float top, float right, float bottom)
Parameters
| Type | Name | Description |
|---|---|---|
| float | left | The left. |
| float | top | The top. |
| float | right | The right. |
| float | bottom | The bottom. |
Returns
| Type |
|---|
| RectangleF |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
Inflate(SizeF)
Declaration
public void Inflate(SizeF size)
Parameters
| Type | Name | Description |
|---|---|---|
| SizeF | size |
Inflate(float, float)
Declaration
public void Inflate(float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | |
| float | y |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
Operators
operator ==(RectangleF, RectangleF)
Declaration
public static bool operator ==(RectangleF rectangle1, RectangleF rectangle2)
Parameters
| Type | Name | Description |
|---|---|---|
| RectangleF | rectangle1 | |
| RectangleF | rectangle2 |
Returns
| Type |
|---|
| bool |
implicit operator RectangleF(Rectangle)
Declaration
public static implicit operator RectangleF(Rectangle rect)
Parameters
| Type | Name | Description |
|---|---|---|
| Rectangle | rect |
Returns
| Type |
|---|
| RectangleF |
operator !=(RectangleF, RectangleF)
Declaration
public static bool operator !=(RectangleF rectangle1, RectangleF rectangle2)
Parameters
| Type | Name | Description |
|---|---|---|
| RectangleF | rectangle1 | |
| RectangleF | rectangle2 |
Returns
| Type |
|---|
| bool |