RectangleSize method

Class: RectangleSizePlatform: ApppiumLanguage: C# SDK:

A constructor that provides several ways to provide the values for the rectangle width and height.

Syntax


 RectangleSize  obj = new RectangleSize();
 RectangleSize  obj = new RectangleSize(width, height);
 RectangleSize  obj = new RectangleSize(size);
 RectangleSize  obj = new RectangleSize(rectangle);
 RectangleSize  obj = new RectangleSize(region);
 RectangleSize  obj = new RectangleSize(size);

Parameters

width
Type:int
The width of the rectangle in pixels.
height
Type:int
The height of the rectangle in pixels.
size
Type:Size
The dimensions of the rectangle.
rectangle
Type:Rectangle
The dimensions of the rectangle.
region
Type:IRegion
The dimensions of the rectangle.
size
Type:RectangleSize
The dimensions of the rectangle.

Return value

Type: RectangleSize