BorderType

BorderType enumeration

Enumerates the border line and diagonal line types.

Values

NameValueDescription
LeftBorder1Represents left border line.
RightBorder2Represents right border line exists.
TopBorder4Represents top border line.
BottomBorder8Represents bottom border line.
DiagonalDown16Represents the diagonal line from top left to right bottom.
DiagonalUp32Represents the diagonal line from bottom left to right top.
Vertical64Only for dynamic style, such as conditional formatting.
Horizontal128Only for dynamic style, such as conditional formatting.
SideBorders15Indicates the four side borders: LeftBorder, RightBorder, TopBorder and BottomBorder.
Diagonal48Special combination of multiple borders for user’s convenience for some APIs. Indicates diagonal borders of DiagonalUp and DiagonalDown.
DynamicStyleBorders192Indicates Vertical and Horizontal of dynamic style.
None0No border has been specified.