ODF .NET Class Library
Show/Hide TOC

# Cell Class

Represents a table cell. It is contained in a table row element. A table cell can contain paragraphs and other text content as well as sub tables. Table cells may span multiple columns and rows. Table cells may be empty.

## Definition

Namespace: Independentsoft.Office.Odf
Assembly: Independentsoft.Office.Odf (in Independentsoft.Office.Odf.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public class Cell : IContentElement

VB

    Public Class Cell
    	Implements IContentElement

Inheritance
  Object Cell

Derived
  Independentsoft.Office.OdfCoveredCell

Implements
  IContentElement

## Constructors

Cell | Initializes a new instance of the Cell class.
Cell(Boolean) | Initializes a new instance of the Cell class.
Cell(DateTime) | Initializes a new instance of the Cell class.
Cell(Double) | Initializes a new instance of the Cell class.
Cell(String) | Initializes a new instance of the Cell class.
Cell(String, CellValueType) | Initializes a new instance of the Cell class.

## Properties

Content |
ContentValidation | Specifies if a cell contains a validity check. The value of this attribute is a name found in the name attribute of a ContentValidation. If this attribute is not present, a cell may have arbitrary content.
Currency | Contains the currency for a value of a table cell, a text field, or a form property.
Formula | Contains the formula for a table cell.
MatrixColumnsSpannedCount | Contains the number of columns spanned by a matrix.
MatrixRowsSpannedCount | Contains the number of rows spanned by a matrix.
NumberOfRepeatedCells | Contains the number of successive columns in which a cell is repeated. It may be used to describe two or more adjoining cells with a single cell element, if they meet the following conditions: - The cells contain the same content and style. - The cells are not merged horizontally or vertically.
SpannedColumnsCount | Contains the number of columns that a cell spans.
SpannedRowsCount | Contains the number of rows that a cell spans.
Style | Contains the style of table cell.
Type | Contains the value-type of a table cell, a text field, or a form property.
Value | Contains the currency, float or percentage value for a table cell, a text field, or a form property.

## Methods

Clone | Creates a new object that is a deep copy of the current instance.
Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetContentElements | Returns all content elements.
GetHashCode | (Inherited from Object)
GetParent | Returns the parent element.
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
ToString | Converts the value of the current Cell object to its equivalent string representation. (Overrides ObjectToString)

## See Also

#### Reference

Independentsoft.Office.Odf Namespace