C# Class Evbpc.Framework.Drawing.RectangleF

Afficher le fichier Open project: EBrown8534/Framework Class Usage Examples

Méthodes publiques

Свойство Type Description
Empty RectangleF

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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

Contains() public méthode

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

Contains() public méthode

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.
Résultat bool

Equals() public méthode

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 .
Résultat bool

FromLTRB() public static méthode

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 .
Résultat RectangleF

GetHashCode() public méthode

Gets a hash code for the current RectangleF.
public GetHashCode ( ) : int
Résultat int

Inflate() public static méthode

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.
Résultat RectangleF

Inflate() public méthode

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

Inflate() public méthode

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.
Résultat RectangleF

Intersect() public méthode

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 .
Résultat RectangleF

Intersect() public static méthode

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.
Résultat RectangleF

IntersectsWith() public méthode

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

Offset() public méthode

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

Offset() public méthode

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.
Résultat RectangleF

RectangleF() public méthode

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 .
Résultat System

RectangleF() public méthode

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 .
Résultat System

ToString() public méthode

Gets a string representation of a RectangleF.
public ToString ( ) : string
Résultat string

Union() public static méthode

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.
Résultat RectangleF

operator() public static méthode

Determines if two RectangleF structures are equivalent.
public static operator ( ) : bool
Résultat bool

Property Details

Empty public_oe static_oe property

Represents a RectangleF with default values.
public static RectangleF,Evbpc.Framework.Drawing Empty
Résultat RectangleF