C# Класс System.Drawing.RectangleF

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Empty RectangleF
Empty System.Drawing.RectangleF

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Contains() публичный Метод

public Contains ( System pt ) : bool
pt System
Результат bool

Equals() публичный Метод

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

public Equals ( object obj ) : bool
obj object
Результат bool

FromLTRB() публичный статический Метод

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
Результат RectangleF

FromLTRB() публичный статический Метод

public static FromLTRB ( float left, float top, float right, float bottom ) : System.Drawing.RectangleF
left float
top float
right float
bottom float
Результат System.Drawing.RectangleF

GetHashCode() публичный Метод

Gets the hash code for this .
public GetHashCode ( ) : int
Результат int

Inflate() публичный статический Метод

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
Результат RectangleF

Inflate() публичный статический Метод

public static Inflate ( System rect, float x, float y ) : System.Drawing.RectangleF
rect System
x float
y float
Результат System.Drawing.RectangleF

Inflate() публичный Метод

Inflates this by the specified amount.
public Inflate ( SizeF size ) : void
size SizeF
Результат void

Inflate() публичный Метод

public Inflate ( System size ) : void
size System
Результат void

Inflate() публичный Метод

Inflates this by the specified amount.

public Inflate ( float x, float y ) : void
x float
y float
Результат void

Intersect() публичный статический Метод

public static Intersect ( System a, System b ) : System.Drawing.RectangleF
a System
b System
Результат System.Drawing.RectangleF

Intersect() публичный Метод

Creates a Rectangle that represents the intersection between this Rectangle and rect.
public Intersect ( RectangleF rect ) : void
rect RectangleF
Результат void

Intersect() публичный Метод

public Intersect ( System rect ) : void
rect System
Результат void

IntersectsWith() публичный Метод

public IntersectsWith ( System rect ) : bool
rect System
Результат bool

Offset() публичный Метод

Adjusts the location of this rectangle by the specified amount.
public Offset ( PointF pos ) : void
pos PointF
Результат void

Offset() публичный Метод

public Offset ( System pos ) : void
pos System
Результат void

Offset() публичный Метод

Adjusts the location of this rectangle by the specified amount.
public Offset ( float x, float y ) : void
x float
y float
Результат void

RectangleF() публичный Метод

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

RectangleF() публичный Метод

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

RectangleF() публичный Метод

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
Результат System.Diagnostics.Contracts

RectangleF() публичный Метод

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
Результат System.Diagnostics.Contracts

ToString() публичный Метод

Converts the and of this to a human-readable string.
public ToString ( ) : string
Результат string

Union() публичный статический Метод

public static Union ( System a, System b ) : System.Drawing.RectangleF
a System
b System
Результат System.Drawing.RectangleF

operator() публичный статический Метод

Tests whether two objects have equal location and size.

public static operator ( ) : bool
Результат bool

Описание свойств

Empty публичное статическое свойство

Initializes a new instance of the class.
public static RectangleF,System.Drawing Empty
Результат RectangleF

Empty публичное статическое свойство

public static System.Drawing.RectangleF Empty
Результат System.Drawing.RectangleF