Scandit.Margins Class Reference
Public Member Functions | |
Margins (int left, int top, int right, int bottom) | |
Margins (String left, String top, String right, String bottom) | |
Detailed Description
Margins for a view.
- Since
- 4.11.0
Constructor & Destructor Documentation
Margins | ( | int | left, |
int | top, | ||
int | right, | ||
int | bottom | ||
) |
- Parameters
-
left The left margin. top The top margin. right The top margin. bottom The bottom margin.
Margins | ( | String | left, |
String | top, | ||
String | right, | ||
String | bottom | ||
) |
Construct a new margins object by passing the margins as strings.
You may specify the margins in percent by adding a '%' at the end of the string. When expressing the margins in percent, the margin is set to the desired percentage of the screen width or height.
- Parameters
-
left The left margin. top The top margin. right The top margin. bottom The bottom margin.