C# 클래스 PixelFarm.Drawing.RectangleF

파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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