C# Class Praeclarum.Graphics.Rectangle

显示文件 Open project: praeclarum/Praeclarum Class Usage Examples

Public Properties

Property Type Description
X int

Public Methods

Method Description
Contains ( int x, int y ) : bool
Inflate ( Size size ) : void
Inflate ( int width, int height ) : void
IntersectsWith ( Rectangle rect ) : bool
Offset ( int dx, int dy ) : void
Rectangle ( int left, int top, int width, int height ) : System
ToString ( ) : string
Union ( Rectangle a, Rectangle b ) : Rectangle

Method Details

Contains() public method

public Contains ( int x, int y ) : bool
x int
y int
return bool

Inflate() public method

public Inflate ( Size size ) : void
size Size
return void

Inflate() public method

public Inflate ( int width, int height ) : void
width int
height int
return void

IntersectsWith() public method

public IntersectsWith ( Rectangle rect ) : bool
rect Rectangle
return bool

Offset() public method

public Offset ( int dx, int dy ) : void
dx int
dy int
return void

Rectangle() public method

public Rectangle ( int left, int top, int width, int height ) : System
left int
top int
width int
height int
return System

ToString() public method

public ToString ( ) : string
return string

Union() public static method

public static Union ( Rectangle a, Rectangle b ) : Rectangle
a Rectangle
b Rectangle
return Rectangle

Property Details

X public_oe property

public int X
return int