public enum PageMargin extends java.lang.Enum<PageMargin>
Page margins are relevant when printing worksheets, and define the amount of empty space on the edges of each printed page
Enum Constant and Description |
---|
BOTTOM
Bottom margin, the empty space on the bottom of displayed worksheet data
when printing
|
FOOTER
Footer margin, the empty space between the footer and the bottom of the
page when printing
|
HEADER
Header margin, the empty space between the header and the top of the page
when printing
|
LEFT
Left margin, the empty space on the left of displayed worksheet data when
printing
|
RIGHT
Right margin, the empty space on the right of displayed worksheet data
when printing
|
TOP
Top margin, the empty space on the top of displayed worksheet data when
printing
|
Modifier and Type | Method and Description |
---|---|
static PageMargin |
getByShortValue(short legacyApiValue)
Retrieves the enumeration value which corresponds to a legacy API
constant value
|
short |
getLegacyApiValue() |
static PageMargin |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PageMargin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PageMargin LEFT
public static final PageMargin RIGHT
public static final PageMargin TOP
public static final PageMargin BOTTOM
public static final PageMargin HEADER
public static final PageMargin FOOTER
public static PageMargin[] values()
for (PageMargin c : PageMargin.values()) System.out.println(c);
public static PageMargin valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic short getLegacyApiValue()
public static PageMargin getByShortValue(short legacyApiValue)
legacyApiValue
- An old API margin constant valueCopyright 2022 The Apache Software Foundation or its licensors, as applicable.