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

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

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

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

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

Метод Описание
Contains ( PointF pt ) : bool

Contains Method

Checks if a Point lies within this RectangleF.

Contains ( RectangleF rect ) : bool

Contains Method

Checks if a RectangleF lies entirely within this RectangleF.

Contains ( float x, float y ) : bool

Contains Method

Checks if an x,y coordinate lies within this RectangleF.

Equals ( object obj ) : bool

Equals Method

Checks equivalence of this RectangleF and an object.

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

FromLTRB Shared Method

Produces a RectangleF structure from left, top, right, and bottom coordinates.

GetHashCode ( ) : int

GetHashCode Method

Calculates a hashing value.

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

Inflate Shared Method

Produces a new RectangleF by inflating an existing RectangleF by the specified coordinate values.

Inflate ( SizeF size ) : void

Inflate Method

Inflates the RectangleF by a specified Size.

Inflate ( float x, float y ) : void

Inflate Method

Inflates the RectangleF by a specified width and height.

Intersect ( RectangleF a, RectangleF b ) : RectangleF

Intersect Shared Method

Produces a new RectangleF by intersecting 2 existing RectangleFs. Returns null if there is no intersection.

Intersect ( RectangleF rect ) : void

Intersect Method

Replaces the RectangleF with the intersection of itself and another RectangleF.

IntersectsWith ( RectangleF rect ) : bool

IntersectsWith Method

Checks if a RectangleF intersects with this one.

Offset ( PointF pos ) : void

Offset Method

Moves the RectangleF a specified distance.

Offset ( float x, float y ) : void

Offset Method

Moves the RectangleF a specified distance.

RectangleF ( PointF location, SizeF size ) : System

RectangleF Constructor

Creates a RectangleF from PointF and SizeF values.

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

RectangleF Constructor

Creates a RectangleF from a specified x,y location and width and height values.

ToString ( ) : string

ToString Method

Formats the RectangleF in (x,y,w,h) notation.

Union ( RectangleF a, RectangleF b ) : RectangleF

Union Shared Method

Produces a new RectangleF from the union of 2 existing RectangleFs.

operator ( ) : bool

Equality Operator

Compares two RectangleF objects. The return value is based on the equivalence of the Location and Size properties of the two RectangleFs.

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

Метод Описание
IntersectsWithInclusive ( RectangleF r ) : bool

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

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

Contains Method
Checks if a Point lies within this RectangleF.
public Contains ( PointF pt ) : bool
pt PointF
Результат bool

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

Contains Method
Checks if a RectangleF lies entirely within this RectangleF.
public Contains ( RectangleF rect ) : bool
rect RectangleF
Результат bool

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

Contains Method
Checks if an x,y coordinate lies within this RectangleF.
public Contains ( float x, float y ) : bool
x float
y float
Результат bool

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

Equals Method
Checks equivalence of this RectangleF and an object.
public Equals ( object obj ) : bool
obj object
Результат bool

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

FromLTRB Shared Method
Produces a RectangleF structure from left, top, right, and bottom coordinates.
public static FromLTRB ( float left, float top, float right, float bottom ) : RectangleF
left float
top float
right float
bottom float
Результат RectangleF

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

GetHashCode Method
Calculates a hashing value.
public GetHashCode ( ) : int
Результат int

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

Inflate Shared Method
Produces a new RectangleF by inflating an existing RectangleF by the specified coordinate values.
public static Inflate ( RectangleF rect, float x, float y ) : RectangleF
rect RectangleF
x float
y float
Результат RectangleF

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

Inflate Method
Inflates the RectangleF by a specified Size.
public Inflate ( SizeF size ) : void
size SizeF
Результат void

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

Inflate Method
Inflates the RectangleF by a specified width and height.
public Inflate ( float x, float y ) : void
x float
y float
Результат void

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

Intersect Shared Method
Produces a new RectangleF by intersecting 2 existing RectangleFs. Returns null if there is no intersection.
public static Intersect ( RectangleF a, RectangleF b ) : RectangleF
a RectangleF
b RectangleF
Результат RectangleF

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

Intersect Method
Replaces the RectangleF with the intersection of itself and another RectangleF.
public Intersect ( RectangleF rect ) : void
rect RectangleF
Результат void

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

IntersectsWith Method
Checks if a RectangleF intersects with this one.
public IntersectsWith ( RectangleF rect ) : bool
rect RectangleF
Результат bool

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

Offset Method
Moves the RectangleF a specified distance.
public Offset ( PointF pos ) : void
pos PointF
Результат void

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

Offset Method
Moves the RectangleF a specified distance.
public Offset ( float x, float y ) : void
x float
y float
Результат void

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

RectangleF Constructor
Creates a RectangleF from PointF and SizeF values.
public RectangleF ( PointF location, SizeF size ) : System
location PointF
size SizeF
Результат System

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

RectangleF Constructor
Creates a RectangleF from a specified x,y location and width and height values.
public RectangleF ( float x, float y, float width, float height ) : System
x float
y float
width float
height float
Результат System

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

ToString Method
Formats the RectangleF in (x,y,w,h) notation.
public ToString ( ) : string
Результат string

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

Union Shared Method
Produces a new RectangleF from the union of 2 existing RectangleFs.
public static Union ( RectangleF a, RectangleF b ) : RectangleF
a RectangleF
b RectangleF
Результат RectangleF

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

Equality Operator
Compares two RectangleF objects. The return value is based on the equivalence of the Location and Size properties of the two RectangleFs.
public static operator ( ) : bool
Результат bool

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

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

Empty Shared Field
An uninitialized RectangleF Structure.
public static RectangleF,PixelFarm.Drawing Empty
Результат RectangleF