C# Class ZForge.Controls.ExplorerBar.RECT

Datei anzeigen Open project: zhuangyy/Motion Class Usage Examples

Public Properties

Property Type Description
bottom int
left int
right int
top int

Public Methods

Method Description
FromRectangle ( Rectangle rect ) : RECT

Creates a new RECT struct from the specified Rectangle

FromXYWH ( int x, int y, int width, int height ) : RECT

Creates a new RECT struct with the specified location and size

RECT ( int left, int top, int right, int bottom ) : System

Creates a new RECT struct with the specified location and size

ToRectangle ( ) : Rectangle

Returns a Rectangle with the same location and size as the RECT

Method Details

FromRectangle() public static method

Creates a new RECT struct from the specified Rectangle
public static FromRectangle ( Rectangle rect ) : RECT
rect System.Drawing.Rectangle The Rectangle to create the RECT from
return RECT

FromXYWH() public static method

Creates a new RECT struct with the specified location and size
public static FromXYWH ( int x, int y, int width, int height ) : RECT
x int The x-coordinate of the upper-left corner of the RECT
y int The y-coordinate of the upper-left corner of the RECT
width int The width of the RECT
height int The height of the RECT
return RECT

RECT() public method

Creates a new RECT struct with the specified location and size
public RECT ( int left, int top, int right, int bottom ) : System
left int The x-coordinate of the upper-left corner of the RECT
top int The y-coordinate of the upper-left corner of the RECT
right int The x-coordinate of the lower-right corner of the RECT
bottom int The y-coordinate of the lower-right corner of the RECT
return System

ToRectangle() public method

Returns a Rectangle with the same location and size as the RECT
public ToRectangle ( ) : Rectangle
return System.Drawing.Rectangle

Property Details

bottom public_oe property

Specifies the y-coordinate of the lower-right corner of the RECT
public int bottom
return int

left public_oe property

Specifies the x-coordinate of the upper-left corner of the RECT
public int left
return int

right public_oe property

Specifies the x-coordinate of the lower-right corner of the RECT
public int right
return int

top public_oe property

Specifies the y-coordinate of the upper-left corner of the RECT
public int top
return int