C# Class System.Drawing.RectangleF

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Свойство Type Description
Empty RectangleF
Empty System.Drawing.RectangleF

Méthodes publiques

Méthode Description
Contains ( System pt ) : bool
Equals ( object obj ) : bool

Tests whether obj is a with the same location and size of this .

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

Creates a new with the specified location and size.

FromLTRB ( float left, float top, float right, float bottom ) : System.Drawing.RectangleF
GetHashCode ( ) : int

Gets the hash code for this .

Inflate ( RectangleF rect, float x, float y ) : RectangleF

Creates a that is inflated by the specified amount.

Inflate ( System rect, float x, float y ) : System.Drawing.RectangleF
Inflate ( SizeF size ) : void

Inflates this by the specified amount.

Inflate ( System size ) : void
Inflate ( float x, float y ) : void

Inflates this by the specified amount.

Intersect ( System a, System b ) : System.Drawing.RectangleF
Intersect ( RectangleF rect ) : void

Creates a Rectangle that represents the intersection between this Rectangle and rect.

Intersect ( System rect ) : void
IntersectsWith ( System rect ) : bool
Offset ( PointF pos ) : void

Adjusts the location of this rectangle by the specified amount.

Offset ( System pos ) : void
Offset ( float x, float y ) : void

Adjusts the location of this rectangle by the specified amount.

RectangleF ( System location, System size )
RectangleF ( float x, float y, float width, float height )
RectangleF ( PointF location, SizeF size ) : System.Diagnostics.Contracts

Initializes a new instance of the class with the specified location and size.

RectangleF ( float x, float y, float width, float height ) : System.Diagnostics.Contracts

Initializes a new instance of the class with the specified location and size.

ToString ( ) : string

Converts the and of this to a human-readable string.

Union ( System a, System b ) : System.Drawing.RectangleF
operator ( ) : bool

Tests whether two objects have equal location and size.

Private Methods

Méthode Description
Contains ( PointF pt ) : bool
Contains ( RectangleF rect ) : bool
Contains ( float x, float y ) : bool
Intersect ( RectangleF a, RectangleF b ) : RectangleF
IntersectsWith ( RectangleF rect ) : bool
Union ( RectangleF a, RectangleF b ) : RectangleF

Method Details

Contains() public méthode

public Contains ( System pt ) : bool
pt System
Résultat bool

Equals() public méthode

Tests whether obj is a with the same location and size of this .

public Equals ( object obj ) : bool
obj object
Résultat bool

FromLTRB() public static méthode

Creates a new with the specified location and size.

public static FromLTRB ( float left, float top, float right, float bottom ) : RectangleF
left float
top float
right float
bottom float
Résultat RectangleF

FromLTRB() public static méthode

public static FromLTRB ( float left, float top, float right, float bottom ) : System.Drawing.RectangleF
left float
top float
right float
bottom float
Résultat System.Drawing.RectangleF

GetHashCode() public méthode

Gets the hash code for this .
public GetHashCode ( ) : int
Résultat int

Inflate() public static méthode

Creates a that is inflated by the specified amount.

public static Inflate ( RectangleF rect, float x, float y ) : RectangleF
rect RectangleF
x float
y float
Résultat RectangleF

Inflate() public static méthode

public static Inflate ( System rect, float x, float y ) : System.Drawing.RectangleF
rect System
x float
y float
Résultat System.Drawing.RectangleF

Inflate() public méthode

Inflates this by the specified amount.
public Inflate ( SizeF size ) : void
size SizeF
Résultat void

Inflate() public méthode

public Inflate ( System size ) : void
size System
Résultat void

Inflate() public méthode

Inflates this by the specified amount.

public Inflate ( float x, float y ) : void
x float
y float
Résultat void

Intersect() public static méthode

public static Intersect ( System a, System b ) : System.Drawing.RectangleF
a System
b System
Résultat System.Drawing.RectangleF

Intersect() public méthode

Creates a Rectangle that represents the intersection between this Rectangle and rect.
public Intersect ( RectangleF rect ) : void
rect RectangleF
Résultat void

Intersect() public méthode

public Intersect ( System rect ) : void
rect System
Résultat void

IntersectsWith() public méthode

public IntersectsWith ( System rect ) : bool
rect System
Résultat bool

Offset() public méthode

Adjusts the location of this rectangle by the specified amount.
public Offset ( PointF pos ) : void
pos PointF
Résultat void

Offset() public méthode

public Offset ( System pos ) : void
pos System
Résultat void

Offset() public méthode

Adjusts the location of this rectangle by the specified amount.
public Offset ( float x, float y ) : void
x float
y float
Résultat void

RectangleF() public méthode

public RectangleF ( System location, System size )
location System
size System

RectangleF() public méthode

public RectangleF ( float x, float y, float width, float height )
x float
y float
width float
height float

RectangleF() public méthode

Initializes a new instance of the class with the specified location and size.

public RectangleF ( PointF location, SizeF size ) : System.Diagnostics.Contracts
location PointF
size SizeF
Résultat System.Diagnostics.Contracts

RectangleF() public méthode

Initializes a new instance of the class with the specified location and size.

public RectangleF ( float x, float y, float width, float height ) : System.Diagnostics.Contracts
x float
y float
width float
height float
Résultat System.Diagnostics.Contracts

ToString() public méthode

Converts the and of this to a human-readable string.
public ToString ( ) : string
Résultat string

Union() public static méthode

public static Union ( System a, System b ) : System.Drawing.RectangleF
a System
b System
Résultat System.Drawing.RectangleF

operator() public static méthode

Tests whether two objects have equal location and size.

public static operator ( ) : bool
Résultat bool

Property Details

Empty public_oe static_oe property

Initializes a new instance of the class.
public static RectangleF,System.Drawing Empty
Résultat RectangleF

Empty public_oe static_oe property

public static System.Drawing.RectangleF Empty
Résultat System.Drawing.RectangleF