Gets or sets the top-level Block element collection the cell.
Visual Basic (Declaration) | |
---|---|
Public Property Blocks As BlockCollection |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As TableCell Dim value As BlockCollection instance.Blocks = value value = instance.Blocks |
C# | |
---|---|
public BlockCollection Blocks {get; set;} |
Delphi | |
---|---|
public read-write property Blocks: BlockCollection; |
JScript | |
---|---|
public function get,set Blocks : BlockCollection |
Managed Extensions for C++ | |
---|---|
public: __property BlockCollection* get_Blocks(); public: __property void set_Blocks( BlockCollection* value ); |
C++/CLI | |
---|---|
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 | ![]() |
---|---|
<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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family