Click or drag to resize

RectangleF Class

Represents a RectangleF
Inheritance Hierarchy

Namespace:  Easymap.AddIn.Common.Graphics
Assembly:  EasyMap.AddIn (in EasyMap.AddIn.dll) Version: 12.0.0.0
Syntax
[SerializableAttribute]
public class RectangleF : BaseObject

The RectangleF type exposes the following members.

Properties
  NameDescription
Public propertyBottom
Gets the y-coordinate that is the sum of System.Drawing.RectangleF.Y and System.Drawing.RectangleF.Height of this System.Drawing.RectangleF structure.
Public propertyHeight
Gets or sets the height of this System.Drawing.RectangleF structure.
Public propertyIsEmpty
Tests whether the System.Drawing.RectangleF.Width or System.Drawing.RectangleF.Height property of this System.Drawing.RectangleF has a value of zero.
Public propertyLeft
Gets the x-coordinate of the left edge of this System.Drawing.RectangleF structure.
Public propertyLocation
Gets or sets the coordinates of the upper-left corner of this System.Drawing.RectangleF structure.
Public propertyRight
Gets the x-coordinate that is the sum of System.Drawing.RectangleF.X and System.Drawing.RectangleF.Width of this System.Drawing.RectangleF structure.
Public propertySize
Gets or sets the size of this System.Drawing.RectangleF.
Public propertyTop
Gets the y-coordinate of the top edge of this System.Drawing.RectangleF structure.
Public propertyWidth
Gets or sets the width of this System.Drawing.RectangleF structure.
Public propertyX
Gets or sets the x-coordinate of the upper-left corner of this System.Drawing.RectangleF structure.
Public propertyY
Gets or sets the y-coordinate of the upper-left corner of this System.Drawing.RectangleF structure.
Top
Methods
  NameDescription
Public methodContains(PointF)
Determines if the specified point is contained within this System.Drawing.RectangleF structure.
Public methodContains(PointF)
Determines if the specified point is contained within this System.Drawing.RectangleF structure.
Public methodContains(RectangleF)
Determines if the rectangular region represented by rect is entirely contained within this System.Drawing.RectangleF structure.
Public methodContains(Single, Single)
Determines if the specified point is contained within this System.Drawing.RectangleF structure.
Public methodEquals
Tests whether obj is a System.Drawing.RectangleF with the same location and size of this System.Drawing.RectangleF.
(Overrides ObjectEquals(Object).)
Public methodStatic memberFromLTRB
Creates a System.Drawing.RectangleF structure with upper-left corner and lower-right corner at the specified locations.
Public methodGetHashCode
Gets the hash code for this System.Drawing.RectangleF structure. For information about the use of hash codes, see Object.GetHashCode.
(Overrides ObjectGetHashCode.)
Public methodInflate(SizeF)
Inflates this System.Drawing.RectangleF by the specified amount.
Public methodInflate(SizeF)
Inflates this System.Drawing.RectangleF by the specified amount.
Public methodInflate(Single, Single)
Inflates this System.Drawing.RectangleF structure by the specified amount.
Public methodStatic memberInflate(RectangleF, Single, Single)
Creates and returns an inflated copy of the specified System.Drawing.RectangleF structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.
Public methodIntersect(RectangleF)
Replaces this System.Drawing.RectangleF structure with the intersection of itself and the specified System.Drawing.RectangleF structure.
Public methodStatic memberIntersect(RectangleF, RectangleF)
Returns a System.Drawing.RectangleF structure that represents the intersection of two rectangles. If there is no intersection, and empty System.Drawing.RectangleF is returned.
Public methodIntersectsWith
Determines if this rectangle intersects with rect.
Public methodOffset(PointF)
Adjusts the location of this rectangle by the specified amount.
Public methodOffset(PointF)
Adjusts the location of this rectangle by the specified amount.
Public methodOffset(Single, Single)
Adjusts the location of this rectangle by the specified amount.
Public methodToString
Converts the Location and System.Drawing.Size of this System.Drawing.RectangleF to a human-readable string.
(Overrides ObjectToString.)
Public methodStatic memberUnion
Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Tests whether two System.Drawing.RectangleF structures have equal location and size.
Public operatorStatic member(Rectangle to RectangleF)
Converts the specified System.Drawing.Rectangle structure to a System.Drawing.RectangleF structure.
Public operatorStatic member(RectangleF to RectangleF)
Copies the specified System.Drawing.RectangleF structure to a System.Drawing.RectangleF structure.
Public operatorStatic member(RectangleF to RectangleF)
Converts the specified RectangleF structure to a RectangleF structure.
Public operatorStatic member(RectangleF to Rectangle)
Converts the specified RectangleF structure to a Rectangle structure by rounding the RectangleF values to the next higher integer values.
Public operatorStatic memberInequality
Tests whether two System.Drawing.RectangleF structures differ in location or size.
Top
Remarks
Can be converted to and from RectangleF
See Also