Intersoft.Client.Documents Namespace > TableCell Class : Blocks Property |
Gets or sets the top-level Block element collection the cell.
Public Property Blocks As BlockCollection
Dim instance As TableCell Dim value As BlockCollection instance.Blocks = value value = instance.Blocks
public BlockCollection Blocks {get; set;}
public: property BlockCollection^ Blocks { BlockCollection^ get(); void set ( BlockCollection^ value); }
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> |
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