New to Kendo UI for Angular? Start a free 30-day trial
Represents the width and height of an entity.
Name | Type | Default | Description |
---|
|
number
|
|
|
number
|
|
(width?: number, height?: number)
Creates a size instance with the specified parameters.
number
The width value.
number
The height value.
|
---|
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 | | |
---|
width
|
number
|
The width value.
|
height
|
number
|
The height value.
|
|
|
|
---|
Creates a Size instance with the specified parameters.
|
Parameters | | |
---|
size
|
number[] | 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 | | |
---|
other
|
Size
|
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.
|
|
|
---|
Sets the height to a new value.
|
Parameters | | |
---|
value
|
number
|
The new height value.
|
|
Returns | |
---|
Size
|
- The current Size instance.
|
|
|
---|
Sets the width to a new value.
|
Parameters | | |
---|
value
|
number
|
The new width value.
|
|
Returns | |
---|
Size
|
- The current Size instance.
|
|