RectangleSize method

Class: RectangleSizePlatform: Selenium 3Language: 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:<a class ='link' href='/Content/api/eyes-sdk/index-gen/class-rectanglesize-selenium-csharp.htm'>RectangleSize</a>
The dimensions of the rectangle.

Return value

Type: <a class ='link' href='/Content/api/eyes-sdk/index-gen/class-rectanglesize-selenium-csharp.htm'>RectangleSize</a>