Class ExcelStyle¶
Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll
Toplevel class for cell styling
Inheritance¶
object ← StyleBase ← ExcelStyle
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
Border¶
Border
Property Value¶
Checkbox¶
Adds an in-cell checkbox to the cell to represents a boolean value. The cell value must be a boolean value or null for the check box to be shown.
Property Value¶
Fill¶
Fill Styling
Property Value¶
Font¶
Font styling
Property Value¶
Hidden¶
If true the formula is hidden when the sheet is protected. Protection
Property Value¶
HorizontalAlignment¶
The horizontal alignment in the cell
Property Value¶
Indent¶
The margin between the border and the text
Property Value¶
JustifyLastLine¶
If the cells justified or distributed alignment should be used on the last line of text.
Property Value¶
Locked¶
If true the cell is locked for editing when the sheet is protected Protection
Property Value¶
Numberformat¶
Numberformat
Property Value¶
QuotePrefix¶
If true the cell has a quote prefix, which indicates the value of the cell is text.
Property Value¶
ReadingOrder¶
Readingorder
Property Value¶
ShrinkToFit¶
Shrink the text to fit
Property Value¶
TextRotation¶
Text orientation in degrees. Values range from 0 to 180 or 255. Setting the rotation to 255 will align text vertically.
Property Value¶
VerticalAlignment¶
The vertical alignment in the cell
Property Value¶
WrapText¶
Wrap the text
Property Value¶
XfId¶
The index in the style collection
Property Value¶
Methods¶
SetTextVertical()¶
Makes the text vertically. This is the same as setting TextRotation to 255.