C# Class Evbpc.Framework.Drawing.RectangleF

Show file Open project: EBrown8534/Framework Class Usage Examples

Public Properties

Property Type Description
Empty RectangleF

Private Properties

Property Type Description

Public Methods

Method Description
Contains ( PointF pt ) : bool

Determines if a PointF is contained within the current RectangleF.

Contains ( RectangleF rect ) : bool

Determines if a RectangleF is entirely contained within this RectangleF.

Contains ( float x, float y ) : bool

Determines if the position represented by x and y is contained within the current RectangleF.

This method is entirely inclusive. If the position represented by the x and y values is on the edge of, or entirely within the current RectangleF, then this method will return true.

Equals ( Object obj ) : bool

Determines if the current RectangleF is equal to the specified object.

FromLTRB ( float left, float top, float right, float bottom ) : RectangleF

Constructs a new instance of RectangleF from the specified Left, Top, Right, and Bottom values.

GetHashCode ( ) : int

Gets a hash code for the current RectangleF.

Inflate ( RectangleF rect, float width, float height ) : RectangleF

Increases the Size of the Rectangle by the specified values.

Inflate ( SizeF size ) : RectangleF

Increases the Size of the RectangleF by the specified Drawing.SizeF.

Inflate ( float width, float height ) : RectangleF

Increases the Size of the RectangleF by the specified values.

Intersect ( RectangleF rect ) : RectangleF

Creates a new RectangleF which is the area that overlaps this and the provided RectangleF objects.

Intersect ( RectangleF a, RectangleF b ) : RectangleF

Creates a new RectangleF which is the area that overlaps the provided RectangleF objects.

IntersectsWith ( RectangleF rect ) : bool

Determines if any corner of the provided RectangleF overlaps this RectangleF.

Offset ( PointF pos ) : RectangleF

Moves this RectangleF by the specified PointF.

Offset ( float x, float y ) : RectangleF

Moves this RectangleF by the specified values.

RectangleF ( PointF location, SizeF size ) : System

Constructs a new instance of RectangleF from the specified PointF and SizeF.

RectangleF ( float x, float y, float width, float height ) : System

Constructs a new instance of RectangleF from the specified X, Y, Width and Height.

ToString ( ) : string

Gets a string representation of a RectangleF.

Union ( RectangleF a, RectangleF b ) : RectangleF

Gets a RectangleF structure that contains the union of two RectangleF structures.

operator ( ) : bool

Determines if two RectangleF structures are equivalent.

Method Details

Contains() public method

Determines if a PointF is contained within the current RectangleF.
public Contains ( PointF pt ) : bool
pt PointF The to test.
return bool

Contains() public method

Determines if a RectangleF is entirely contained within this RectangleF.
public Contains ( RectangleF rect ) : bool
rect RectangleF The to test.
return bool

Contains() public method

Determines if the position represented by x and y is contained within the current RectangleF.
This method is entirely inclusive. If the position represented by the x and y values is on the edge of, or entirely within the current RectangleF, then this method will return true.
public Contains ( float x, float y ) : bool
x float The x value of the position to test.
y float The y value of the position to test.
return bool

Equals() public method

Determines if the current RectangleF is equal to the specified object.
public Equals ( Object obj ) : bool
obj Object The object to compare to the current .
return bool

FromLTRB() public static method

Constructs a new instance of RectangleF from the specified Left, Top, Right, and Bottom values.
public static FromLTRB ( float left, float top, float right, float bottom ) : RectangleF
left float The position of the .
top float The location of the .
right float The location of the .
bottom float The location of the .
return RectangleF

GetHashCode() public method

Gets a hash code for the current RectangleF.
public GetHashCode ( ) : int
return int

Inflate() public static method

Increases the Size of the Rectangle by the specified values.
public static Inflate ( RectangleF rect, float width, float height ) : RectangleF
rect RectangleF The to modify.
width float The to increase the by.
height float The to increase the by.
return RectangleF

Inflate() public method

Increases the Size of the RectangleF by the specified Drawing.SizeF.
public Inflate ( SizeF size ) : RectangleF
size SizeF The to increase the by.
return RectangleF

Inflate() public method

Increases the Size of the RectangleF by the specified values.
public Inflate ( float width, float height ) : RectangleF
width float The to increase the by.
height float The to increase the by.
return RectangleF

Intersect() public method

Creates a new RectangleF which is the area that overlaps this and the provided RectangleF objects.
public Intersect ( RectangleF rect ) : RectangleF
rect RectangleF The to intersect this .
return RectangleF

Intersect() public static method

Creates a new RectangleF which is the area that overlaps the provided RectangleF objects.
public static Intersect ( RectangleF a, RectangleF b ) : RectangleF
a RectangleF The first to intersect.
b RectangleF The second to intersect.
return RectangleF

IntersectsWith() public method

Determines if any corner of the provided RectangleF overlaps this RectangleF.
public IntersectsWith ( RectangleF rect ) : bool
rect RectangleF The to test.
return bool

Offset() public method

Moves this RectangleF by the specified PointF.
public Offset ( PointF pos ) : RectangleF
pos PointF The containing the values to move by.
return RectangleF

Offset() public method

Moves this RectangleF by the specified values.
public Offset ( float x, float y ) : RectangleF
x float The to increase or decrease this by.
y float The to increase or decrease this by.
return RectangleF

RectangleF() public method

Constructs a new instance of RectangleF from the specified PointF and SizeF.
public RectangleF ( PointF location, SizeF size ) : System
location PointF The of the .
size SizeF The of the .
return System

RectangleF() public method

Constructs a new instance of RectangleF from the specified X, Y, Width and Height.
public RectangleF ( float x, float y, float width, float height ) : System
x float A value representing the of the .
y float A value representing the of the .
width float A value representing the of the .
height float A value representing the of the .
return System

ToString() public method

Gets a string representation of a RectangleF.
public ToString ( ) : string
return string

Union() public static method

Gets a RectangleF structure that contains the union of two RectangleF structures.
public static Union ( RectangleF a, RectangleF b ) : RectangleF
a RectangleF The first to union.
b RectangleF The second to union.
return RectangleF

operator() public static method

Determines if two RectangleF structures are equivalent.
public static operator ( ) : bool
return bool

Property Details

Empty public static property

Represents a RectangleF with default values.
public static RectangleF,Evbpc.Framework.Drawing Empty
return RectangleF