Intersoft ClientUI Documentation
Table Class
Members  See Also  Send Feedback
Intersoft.Client.Documents Namespace : Table Class






A block-level flow content element that provides a grid-based presentation organized by rows and columns.

Object Model

Table Class

Syntax

Visual Basic (Declaration) 
<ContentPropertyAttribute("RowGroups")>
Public Class Table 
   Inherits Block
Visual Basic (Usage)Copy Code
Dim instance As Table
C# 
[ContentPropertyAttribute("RowGroups")]
public class Table : Block 
Delphi 
public class Table = class(Block)
JScript 
ContentPropertyAttribute("RowGroups")
public class Table extends Block
Managed Extensions for C++ 
[ContentPropertyAttribute("RowGroups")]
public __gc class Table : public Block 
C++/CLI 
[ContentPropertyAttribute("RowGroups")]
public ref class Table : public Block 

Remarks

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>

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      Intersoft.Client.Documents.TextElement
         Intersoft.Client.Documents.Block
            Intersoft.Client.Documents.Table

Requirements

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

See Also

© 2012 All Rights Reserved.