An instance of the Table
public class TableCellFormat
Public Class TableCellFormat
The following example shows how to format a table cell.
TXTextControl.TableCellFormat myCellFormat = new TXTextControl.TableCellFormat();
myCellFormat.BackColor = System.Drawing.Color.LightBlue;
myCellFormat.BottomBorderWidth = 150;
myCellFormat.VerticalAlignment = TXTextControl.VerticalAlignment.Bottom;
myTable.Cells.GetItem(1, 1).CellFormat = myCellFormat;
Dim MyCellFormat As New TXTextControl.TableCellFormat()
MyCellFormat.BackColor = System.Drawing.Color.LightBlue
MyCellFormat.BottomBorderWidth = 150
MyCellFormat.VerticalAlignment = TXTextControl.VerticalAlignment.Bottom
MyTable.Cells.GetItem(1, 1).CellFormat = MyCellFormat
Property | Description |
---|---|
Back |
Gets or sets the table cell's background color. |
Bottom |
Gets or sets the color of the table cell's bottom border. |
Bottom |
Gets or sets, in twips, the width of the table cell's bottom border. |
Bottom |
Gets or sets, in twips, the distance between the table cell's bottom border and its text. |
Left |
Gets or sets the color of the table cell's left border. |
Left |
Gets or sets, in twips, the width of the table cell's left border. |
Left |
Gets or sets, in twips, the distance between the table cell's left border and its text. |
Number |
Gets or sets a number format for the table cell. |
Right |
Gets or sets the color of the table cell's right border. |
Right |
Gets or sets, in twips, the width of the table cell's right border. |
Right |
Gets or sets, in twips, the distance between the table cell's right border and its text. |
Text |
Gets or sets the text type of the table cell which determines whether the cell's text is interpreted as a number or as text When the type is Standard, the cell's text is interpreted as text and it is displayed as it is. |
Top |
Gets or sets the color of the table cell's top border. |
Top |
Gets or sets, in twips, the width of the table cell's top border. |
Top |
Gets or sets, in twips, the distance between the table cell's top border and its text. |
Vertical |
Gets or sets the vertical alignment of the text in the table cell. |
Learn more about the TXText