Top Description Fields Constructors Methods
org.apache.poi.ss.usermodel

public final Enum VerticalAlignment

extends Enum<VerticalAlignment>
Class Inheritance

This enumeration value indicates the type of vertical alignment for a cell, i.e., whether it is aligned top, bottom, vertically centered, justified or distributed.

Field Summary

Modifier and TypeField and Description
public static final VerticalAlignment
BOTTOM

The vertical alignment is aligned-to-bottom.

public static final VerticalAlignment
CENTER

The vertical alignment is centered across the height of the cell.

public static final VerticalAlignment
DISTRIBUTED

When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top

When text direction is vertical: behaves exactly as distributed horizontal alignment.

public static final VerticalAlignment
JUSTIFY

When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top and bottom margins.

public static final VerticalAlignment
TOP

The vertical alignment is aligned-to-top.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static VerticalAlignment
forInt(int code)

public short
public static VerticalAlignment
public static VerticalAlignment[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BOTTOMback to summary
public static final VerticalAlignment BOTTOM

The vertical alignment is aligned-to-bottom. (typically the default value)

CENTERback to summary
public static final VerticalAlignment CENTER

The vertical alignment is centered across the height of the cell.

DISTRIBUTEDback to summary
public static final VerticalAlignment DISTRIBUTED

When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top

When text direction is vertical: behaves exactly as distributed horizontal alignment. The first words in a line of text (appearing at the top of the cell) are flush with the top edge of the cell, and the last words of a line of text are flush with the bottom edge of the cell, and the line of text is distributed evenly from top to bottom.

JUSTIFYback to summary
public static final VerticalAlignment JUSTIFY

When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top and bottom margins.

When text direction is vertical: similar behavior as horizontal justification. The alignment is justified (flush top and bottom in this case). For each line of text, each line of the wrapped text in a cell is aligned to the top and bottom (except the last line). If no single line of text wraps in the cell, then the text is not justified.

TOPback to summary
public static final VerticalAlignment TOP

The vertical alignment is aligned-to-top.

Constructor Detail

VerticalAlignmentback to summary
private VerticalAlignment()

Method Detail

forIntback to summary
public static VerticalAlignment forInt(int code)
getCodeback to summary
public short getCode()
valueOfback to summary
public static VerticalAlignment valueOf(String name)
valuesback to summary
public static VerticalAlignment[] values()