public enum VerticalAlignment extends java.lang.Enum<VerticalAlignment>
VerticalAlignments
represent the built-in vertical alignment
names that correspond with Excel's vertical alignment scheme. These are
used in conjunction with the vertical alignment property in the style tag.
Legal values are the names of the enumeration objects, without underscores,
case insensitive, e.g. "justify" == "Justify" == "JUSTIFY".
StyleTag
,
StyleParser.PROPERTY_VERTICAL_ALIGNMENT
Enum Constant | Description |
---|---|
BOTTOM |
|
CENTER |
|
DISTRIBUTED |
|
JUSTIFY |
|
TOP |
Modifier and Type | Method | Description |
---|---|---|
short |
getIndex() |
Returns the index.
|
java.lang.String |
toString() |
Returns the name, in all lowercase, no underscores or spaces.
|
static VerticalAlignment |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static VerticalAlignment[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VerticalAlignment BOTTOM
public static final VerticalAlignment CENTER
public static final VerticalAlignment DISTRIBUTED
public static final VerticalAlignment JUSTIFY
public static final VerticalAlignment TOP
public static VerticalAlignment[] values()
for (VerticalAlignment c : VerticalAlignment.values()) System.out.println(c);
public static VerticalAlignment 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 getIndex()
public java.lang.String toString()
toString
in class java.lang.Enum<VerticalAlignment>
Copyright © 2012–2018 Jett Team. All rights reserved.