new Thickness(top: number, right?: number, bottom?: number, left?: number): Thickness
Creates an instance of a Thickness object, with top, right, bottom and left
The constructor shortcuts are as follows:
new Thickness(3, 5, 3, 5) // all definednew Thickness(3, 5, 3) // left undefined -> copies rightnew Thickness(3, 5) // left & bottom undefined -> copies right & top respectivelynew Thickness(3) // all sides equal to 3
Creates an instance of a Thickness object, with top, right, bottom and left
The constructor shortcuts are as follows:
new Thickness(3, 5, 3, 5) // all defined new Thickness(3, 5, 3) // left undefined -> copies right new Thickness(3, 5) // left & bottom undefined -> copies right & top respectively new Thickness(3) // all sides equal to 3