BorderType enumeration

BorderType enumeration

Enumerates the border line and diagonal line types.

The BorderType type exposes the following members:

Fields

FieldDescription
LEFT_BORDERRepresents left border line.
RIGHT_BORDERRepresents right border line exists.
TOP_BORDERRepresents top border line.
BOTTOM_BORDERRepresents bottom border line.
DIAGONAL_DOWNRepresents the diagonal line from top left to right bottom.
DIAGONAL_UPRepresents the diagonal line from bottom left to right top.
VERTICALOnly for dynamic style, such as conditional formatting.
HORIZONTALOnly for dynamic style, such as conditional formatting.
SIDE_BORDERSIndicates the four side borders: BorderType.LEFT_BORDER,
BorderType.RIGHT_BORDER, BorderType.TOP_BORDER and BorderType.BOTTOM_BORDER.
DIAGONALSpecial combination of multiple borders for user’s convenience for some APIs.
Indicates diagonal borders of BorderType.DIAGONAL_UP and BorderType.DIAGONAL_DOWN.
DYNAMIC_STYLE_BORDERSIndicates BorderType.VERTICAL and BorderType.HORIZONTAL of dynamic style.
NONENo border has been specified.

See Also