New to Kendo UI for AngularStart a free 30-day trial

Size

Class

Represents the width and height of an entity.

Definition

Package:@progress/kendo-drawing

Methods

Creates a new instance with the same width and height.

Returns:

Size

  • A new Size instance with the same dimensions.

Creates a Size instance with the specified parameters.

Parameters:widthnumber

The width value.

heightnumber

The height value.

Returns:

Size

  • The new Size instance.

Creates a Size instance with the specified parameters.

Parameters:sizenumber[] | Size

The size values as a [width, height] array or an existing instance.

Returns:

Size

  • The newly created Size instance.

Compares this Size with another instance.

Parameters:otherSize

The Size to compare with.

Returns:

boolean

true if the size members match. Otherwise, returns false.

Gets the height value.

Returns:

number

  • The current height value.

Gets the width value.

Returns:

number

  • The current width value.

Sets the height to a new value.

Parameters:valuenumber

The new height value.

Returns:

Size

  • The current Size instance.

Sets the width to a new value.

Parameters:valuenumber

The new width value.

Returns:

Size

  • The current Size instance.

Properties

height

number

The vertical size.

width

number

The horizontal size.