C# 클래스 System.Drawing.Rectangle

파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Empty Rectangle
Empty System.Drawing.Rectangle

공개 메소드들

메소드 설명
Ceiling ( RectangleF value ) : Rectangle

Converts a RectangleF to a Rectangle by performing a ceiling operation on all the coordinates.

Ceiling ( System value ) : System.Drawing.Rectangle
Contains ( System pt ) : bool
Equals ( object obj ) : bool

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

FromLTRB ( int left, int top, int right, int bottom ) : Rectangle

Creates a new with the specified location and size.

FromLTRB ( int left, int top, int right, int bottom ) : System.Drawing.Rectangle
GetHashCode ( ) : int
Inflate ( Rectangle rect, int x, int y ) : Rectangle

Creates a that is inflated by the specified amount.

Inflate ( System rect, int x, int y ) : System.Drawing.Rectangle
Inflate ( Size size ) : void

Inflates this by the specified amount.

Inflate ( System size ) : void
Inflate ( int width, int height ) : void

Inflates this by the specified amount.

Intersect ( Rectangle a, Rectangle b ) : Rectangle

Creates a rectangle that represents the intersection between a and b. If there is no intersection, null is returned.

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

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

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

Adjusts the location of this rectangle by the specified amount.

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

Adjusts the location of this rectangle by the specified amount.

Rectangle ( System location, System size )
Rectangle ( int x, int y, int width, int height )
Rectangle ( Point location, Size size ) : System.Diagnostics.Contracts

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

Rectangle ( int x, int y, int width, int height ) : System.Diagnostics.Contracts

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

Round ( RectangleF value ) : Rectangle

Converts a RectangleF to a Rectangle by performing a round operation on all the coordinates.

Round ( System value ) : System.Drawing.Rectangle
ToString ( ) : string

Converts the attributes of this to a human readable string.

Truncate ( RectangleF value ) : Rectangle

Converts a RectangleF to a Rectangle by performing a truncate operation on all the coordinates.

Truncate ( System value ) : System.Drawing.Rectangle
Union ( System a, System b ) : System.Drawing.Rectangle
operator ( ) : bool

Tests whether two objects have equal location and size.

비공개 메소드들

메소드 설명
Contains ( Point pt ) : bool
Contains ( Rectangle rect ) : bool
Contains ( int x, int y ) : bool
IntersectsWith ( Rectangle rect ) : bool
Union ( Rectangle a, Rectangle b ) : Rectangle

메소드 상세

Ceiling() 공개 정적인 메소드

Converts a RectangleF to a Rectangle by performing a ceiling operation on all the coordinates.
public static Ceiling ( RectangleF value ) : Rectangle
value RectangleF
리턴 Rectangle

Ceiling() 공개 정적인 메소드

public static Ceiling ( System value ) : System.Drawing.Rectangle
value System
리턴 System.Drawing.Rectangle

Contains() 공개 메소드

public Contains ( System pt ) : bool
pt System
리턴 bool

Equals() 공개 메소드

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

public Equals ( object obj ) : bool
obj object
리턴 bool

FromLTRB() 공개 정적인 메소드

Creates a new with the specified location and size.
public static FromLTRB ( int left, int top, int right, int bottom ) : Rectangle
left int
top int
right int
bottom int
리턴 Rectangle

FromLTRB() 공개 정적인 메소드

public static FromLTRB ( int left, int top, int right, int bottom ) : System.Drawing.Rectangle
left int
top int
right int
bottom int
리턴 System.Drawing.Rectangle

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Inflate() 공개 정적인 메소드

Creates a that is inflated by the specified amount.

public static Inflate ( Rectangle rect, int x, int y ) : Rectangle
rect Rectangle
x int
y int
리턴 Rectangle

Inflate() 공개 정적인 메소드

public static Inflate ( System rect, int x, int y ) : System.Drawing.Rectangle
rect System
x int
y int
리턴 System.Drawing.Rectangle

Inflate() 공개 메소드

Inflates this by the specified amount.
public Inflate ( Size size ) : void
size Size
리턴 void

Inflate() 공개 메소드

public Inflate ( System size ) : void
size System
리턴 void

Inflate() 공개 메소드

Inflates this by the specified amount.

public Inflate ( int width, int height ) : void
width int
height int
리턴 void

Intersect() 공개 정적인 메소드

Creates a rectangle that represents the intersection between a and b. If there is no intersection, null is returned.
public static Intersect ( Rectangle a, Rectangle b ) : Rectangle
a Rectangle
b Rectangle
리턴 Rectangle

Intersect() 공개 정적인 메소드

public static Intersect ( System a, System b ) : System.Drawing.Rectangle
a System
b System
리턴 System.Drawing.Rectangle

Intersect() 공개 메소드

Creates a Rectangle that represents the intersection between this Rectangle and rect.
public Intersect ( Rectangle rect ) : void
rect Rectangle
리턴 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 ( Point pos ) : void
pos Point
리턴 void

Offset() 공개 메소드

public Offset ( System pos ) : void
pos System
리턴 void

Offset() 공개 메소드

Adjusts the location of this rectangle by the specified amount.
public Offset ( int x, int y ) : void
x int
y int
리턴 void

Rectangle() 공개 메소드

public Rectangle ( System location, System size )
location System
size System

Rectangle() 공개 메소드

public Rectangle ( int x, int y, int width, int height )
x int
y int
width int
height int

Rectangle() 공개 메소드

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

public Rectangle ( Point location, Size size ) : System.Diagnostics.Contracts
location Point
size Size
리턴 System.Diagnostics.Contracts

Rectangle() 공개 메소드

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

public Rectangle ( int x, int y, int width, int height ) : System.Diagnostics.Contracts
x int
y int
width int
height int
리턴 System.Diagnostics.Contracts

Round() 공개 정적인 메소드

Converts a RectangleF to a Rectangle by performing a round operation on all the coordinates.
public static Round ( RectangleF value ) : Rectangle
value RectangleF
리턴 Rectangle

Round() 공개 정적인 메소드

public static Round ( System value ) : System.Drawing.Rectangle
value System
리턴 System.Drawing.Rectangle

ToString() 공개 메소드

Converts the attributes of this to a human readable string.

public ToString ( ) : string
리턴 string

Truncate() 공개 정적인 메소드

Converts a RectangleF to a Rectangle by performing a truncate operation on all the coordinates.
public static Truncate ( RectangleF value ) : Rectangle
value RectangleF
리턴 Rectangle

Truncate() 공개 정적인 메소드

public static Truncate ( System value ) : System.Drawing.Rectangle
value System
리턴 System.Drawing.Rectangle

Union() 공개 정적인 메소드

public static Union ( System a, System b ) : System.Drawing.Rectangle
a System
b System
리턴 System.Drawing.Rectangle

operator() 공개 정적인 메소드

Tests whether two objects have equal location and size.

public static operator ( ) : bool
리턴 bool

프로퍼티 상세

Empty 공개적으로 정적으로 프로퍼티

public static Rectangle Empty
리턴 Rectangle

Empty 공개적으로 정적으로 프로퍼티

public static System.Drawing.Rectangle Empty
리턴 System.Drawing.Rectangle