Intersoft.Client.Documents Namespace : TableCell Class |
<ContentPropertyAttribute("Blocks")> Public Class TableCell Inherits TextElement
Dim instance As TableCell
[ContentPropertyAttribute("Blocks")] public class TableCell : TextElement
[ContentPropertyAttribute("Blocks")] public ref class TableCell : public TextElement
Table is a Block element that supports grid-based presentation consisting of columns (represented by TableColumn elements) and rows (represented by TableRow elements). TableColumn elements do not host content; they simply define columns and characteristics of columns. TableRow elements must be hosted in a TableRowGroup element, which defines a grouping of rows for the table. TableCell elements, which contain the actual content to be presented by the table, must be hosted in a TableRow element. TableCell element may not directly host text content. It can only contains Block elements.
XAML |
Copy Code
|
---|---|
<Intersoft:FlowDocument> <Intersoft:Table Borders="1,Single,#FF000000"> <!-- This table has 3 columns, each described by a TableColumn element nested in a Table.Columns collection element. --> <Intersoft:Table.Columns> <Intersoft:TableColumn /> <Intersoft:TableColumn /> <Intersoft:TableColumn /> </Intersoft:Table.Columns> <!-- This table includes a single TableRowGroup which hosts 2 rows, each described by a TableRow element. --> <Intersoft:TableRowGroup> <!-- Each of the 2 TableRow elements hosts 3 cells, described by TableCell elements. --> <Intersoft:TableRow> <Intersoft:TableCell> <!-- TableCell elements may only host elements derived from Block. In this example, Paragaph elements serve as the ultimate content containers for the cells in this table. --> <Intersoft:Paragraph> <Intersoft:Run> Cell at Row 1 Column 1 </Intersoft:Run> </Intersoft:Paragraph> </Intersoft:TableCell> <Intersoft:TableCell> <Intersoft:Paragraph> <Intersoft:Run> Cell at Row 1 Column 2 </Intersoft:Run> </Intersoft:Paragraph> </Intersoft:TableCell> <Intersoft:TableCell> <Intersoft:Paragraph> <Intersoft:Run> Cell at Row 1 Column 3 </Intersoft:Run> </Intersoft:Paragraph> </Intersoft:TableCell> </Intersoft:TableRow> <Intersoft:TableRow> <Intersoft:TableCell> <Intersoft:Paragraph> <Intersoft:Run> Cell at Row 2 Column 1 </Intersoft:Run> </Intersoft:Paragraph> </Intersoft:TableCell> <Intersoft:TableCell> <Intersoft:Paragraph> <Intersoft:Run> Cell at Row 2 Column 2 </Intersoft:Run> </Intersoft:Paragraph> </Intersoft:TableCell> <Intersoft:TableCell> <Intersoft:Paragraph> <Intersoft:Run> Cell at Row 2 Column 3 </Intersoft:Run> </Intersoft:Paragraph> </Intersoft:TableCell> </Intersoft:TableRow> </Intersoft:TableRowGroup> </Intersoft:Table> </Intersoft:FlowDocument> |
System.Object
System.Windows.DependencyObject
Intersoft.Client.Documents.TextElement
Intersoft.Client.Documents.TableCell
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2