TableCell Class
Represents a table cell.
public sealed class TableCell : TableElement
Public NotInheritable Class TableCell
Inherits TableElement
- Inheritance:
- System.ObjectTableCell
Properties
ColumnSpan
Gets or sets the number of columns through which this cell is spanning.
Property Value
- System.Int32
The number of columns through which this cell is spanning.
Exceptions
- System.ArgumentOutOfRangeException
Value is less than 1.
Format
Gets the cell's formatting options.
Property Value
The cell's formatting options.
Remarks
This property always returns a new instance of a TableCellFormat that points to data associated with this cell. This reduces memory footprint since simpler internal structures can be used to hold the data and execution time increase is negligible since Garbage Collector has a very good performance for a short-lived (Generation 0) objects.
Parent
Gets the parent TableRow, if the cell is not removed; otherwise, null.
Property Value
RowSpan
Gets or sets the number of rows through which this cell is spanning.
Property Value
- System.Int32
The number of rows through which this cell is spanning.
Exceptions
- System.ArgumentOutOfRangeException
Value is less than 1.
Text
Gets the text content and formatting associated with this TableCell.
Property Value
TextContent
Gets the text content of the current TableCell.
Property Value
Remarks
The property always returns a new instance of the TextRange class.
For more information, see Find and Replace example.
Inherited Properties
Table | Gets the parent Table, if element is not removed; otherwise, null. (Inherited from TableElement) |