Class AbstractFormattable
Abstract base class for objects that support cell formatting.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public abstract class AbstractFormattable
Constructors
AbstractFormattable()
Initializes a new instance of the AbstractFormattable class.
Declaration
protected AbstractFormattable()
AbstractFormattable(Worksheet)
Initializes a new instance of the AbstractFormattable class with a worksheet.
Declaration
protected AbstractFormattable(Worksheet worksheet)
Parameters
| Type | Name | Description |
|---|---|---|
| Worksheet | worksheet | The worksheet. |
Properties
Alignment
Gets the alignment of the cell.
Declaration
public CellAlignment Alignment { get; }
Property Value
| Type | Description |
|---|---|
| CellAlignment |
Borders
Gets the borders of the cell.
Declaration
public AbstractBorders Borders { get; set; }
Property Value
| Type | Description |
|---|---|
| AbstractBorders |
Fill
Get or set the background fill of the cell
Declaration
public CellFill Fill { get; set; }
Property Value
| Type | Description |
|---|---|
| CellFill |
Font
Gets the font of the cell.
Declaration
public FormattableFont Font { get; }
Property Value
| Type | Description |
|---|---|
| FormattableFont |
Format
Specifies the number format of the cell.
Declaration
public Format Format { get; set; }
Property Value
| Type | Description |
|---|---|
| Format |
IsFormulaHidden
Set or get whether the cell's formula is hidden in the formula bar. This value of this property is meaningful only if the sheet is protected.
Declaration
public bool IsFormulaHidden { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsLocked
Set or get whether the cell is locked and cannot be edited. This value of this property is meaningful only if the sheet is protected.
Declaration
public bool IsLocked { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
QuotePrefix
Gets or sets whether the cell's value should be treated as text (preserves leading apostrophe).
Declaration
public bool QuotePrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Style
Get or get the style of the row or column
Declaration
public virtual CellStyle Style { get; set; }
Property Value
| Type | Description |
|---|---|
| CellStyle |
Worksheet
Get the sheet which contains the row or column.
Declaration
public virtual Worksheet Worksheet { get; }
Property Value
| Type | Description |
|---|---|
| Worksheet |