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

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. More...

#include "screen.h"

Public Member Functions

ASPOSECPP_SHARED_API Rectangle_ (int x, int y, int width, int height)
 Constructor. More...
 
int get_X () const
 Gets left position. More...
 
int get_Y () const
 Gets tops position. More...
 
int get_Width () const
 Gets horizontal size. More...
 
int get_Height () const
 Gets verticalal size. More...
 
System::Drawing::Size get_Size () const
 Gets rectangle size. More...
 

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.