System::Windows::Forms::Screen::Rectangle_ Class Reference

Public Member Functions

ASPOSECPP_SHARED_API Rectangle_ (int x, int y, int width, int height)
 
int get_X () const
 
int get_Y () const
 
int get_Width () const
 
int get_Height () const
 
System::Drawing::Size get_Size () const
 

Detailed Description

Describes rectangle with position and size. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.

Constructor & Destructor Documentation

◆ Rectangle_()

ASPOSECPP_SHARED_API System::Windows::Forms::Screen::Rectangle_::Rectangle_ ( int  x,
int  y,
int  width,
int  height 
)

Constructor.

Parameters
xLeft position.
yTop position.
widthHorizontal size.
heightVertical size.

Member Function Documentation

◆ get_Height()

int System::Windows::Forms::Screen::Rectangle_::get_Height ( ) const
inline

Gets verticalal size.

Returns
Height.

◆ get_Size()

System::Drawing::Size System::Windows::Forms::Screen::Rectangle_::get_Size ( ) const
inline

Gets rectangle size.

Returns
Size object.

◆ get_Width()

int System::Windows::Forms::Screen::Rectangle_::get_Width ( ) const
inline

Gets horizontal size.

Returns
Width.

◆ get_X()

int System::Windows::Forms::Screen::Rectangle_::get_X ( ) const
inline

Gets left position.

Returns
X coordinate.

◆ get_Y()

int System::Windows::Forms::Screen::Rectangle_::get_Y ( ) const
inline

Gets tops position.

Returns
Y coordinate.