| Previous | Next | Frames | No Frames |
| Summary: Field | Property | Contructor | Method | Detail: Field | Property | Contructor | Method |
Object | +--xp.system.Thickness
Field Summary | |
| bottom: Number | |
| Gets or sets the width of the bottom side. | |
| left: Number | |
| Gets or sets the width of the left side. | |
| right: Number | |
| Gets or sets the width of the right side. | |
| public static | Thickness0: Thickness |
| commonly used constants commonly used thickness left/top/right/bottom = 0 | |
| public static | Thickness1: Thickness |
| commonly used thickness left/top/right/bottom = 1 | |
| public static | Thickness2: Thickness |
| commonly used thickness left/top/right/bottom = 2 | |
| public static | Thickness3: Thickness |
| commonly used thickness left/top/right/bottom = 3 | |
| top: Number | |
| Gets or sets the width of the top side. | |
Property Summary | |
| public | horizontal: Number (read-only) |
| returns the sum of the left and right thicknesses | |
| public | vertical: Number (read-only) |
| returns the sum of the top and bottom thicknesses | |
Constructor | |
| public | Thickness ( ) |
| Initializes a new instance of the Thickness structure. | |
Method Summary | |
| public | clone ( ): Object |
| Creates a shallow copy of the current Object | |
| public | equals ( v: Thickness ): Boolean |
| Compares this Thickness structure to another object for exact equality. | |
| public | toString ( ): String |
| converts the specified object to a string and returns it. | |
| var bottom: Number |
| Gets or sets the width of the bottom side. |
| var left: Number |
| Gets or sets the width of the left side. |
| var right: Number |
| Gets or sets the width of the right side. |
| public static var Thickness0: Thickness |
| commonly used constants commonly used thickness left/top/right/bottom = 0 |
| public static var Thickness1: Thickness |
| commonly used thickness left/top/right/bottom = 1 |
| public static var Thickness2: Thickness |
| commonly used thickness left/top/right/bottom = 2 |
| public static var Thickness3: Thickness |
| commonly used thickness left/top/right/bottom = 3 |
| var top: Number |
| Gets or sets the width of the top side. |
|
| returns the sum of the left and right thicknesses |
|
| returns the sum of the top and bottom thicknesses |
|
| Initializes a new instance of the Thickness structure. Create a new instance of a Thickness Accepts either: Thickness(1) Single number, all properties are set to the value Thickness(1,2) Two number, left and right are set to the first value and top and bottom to the second " Thickness(1,2,3,4) Four numbers representing values l,t,r,b " Thickness("1 2 3 4") String with 4 values representing l,t,r,b Thickness({left:1,top:2,right:3,bottom:4}) An object witht he properties left,top,right and bottom |
|
| Creates a shallow copy of the current Object |
|
|
| Compares this Thickness structure to another object for exact equality. |
|
| converts the specified object to a string and returns it. |