Intersoft ClientUI Documentation
Width Property (Table)



Gets or sets the width of the table.
Syntax
Public Property Width As Double
Dim instance As Table
Dim value As Double
 
instance.Width = value
 
value = instance.Width
public double Width {get; set;}
public:
property double Width {
   double get();
   void set (    double value);
}
Remarks

By default, Table element will use the width of the available document width. To specify a custom width value, you can either use Width property or specify a double length value as the width of each TableColumn definition. For example, if you have four columns and specify 100 as the width of each TableColumn , the width of Table element will be 400 pixel. On the other hand, you cannot specify the height of the Table element. Table element will consume the total height as the result of the flowing content in each cell. You can specify height definition in TableRow level. For further information about TableRow, see Understanding TableRow.

XAML
Copy Code
<Intersoft:FlowDocument>
    <Intersoft:Table Borders="1,Single,#FF000000">
        <Intersoft:Table.Columns>
            <Intersoft:TableColumn Width="100"/>
            <Intersoft:TableColumn Width="100"/>
            <Intersoft:TableColumn Width="100"/>
            <Intersoft:TableColumn Width="100"/>
        </Intersoft:Table.Columns>
        <Intersoft:TableRowGroup>
            <Intersoft:TableRow>
                <Intersoft:TableCell>
                    <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:TableCell>
                    <Intersoft:Paragraph>
                        <Intersoft:Run>
                            Cell at Row 1 Column 4
                        </Intersoft:Run>
                    </Intersoft:Paragraph>
                </Intersoft:TableCell>
            </Intersoft:TableRow>
        </Intersoft:TableRowGroup>
    </Intersoft:Table>
</Intersoft:FlowDocument>

Note that, if you specify Auto or Star value as one of the TableColumn width, the Table element will use the available document width.

Requirements

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

See Also

Reference

Table Class
Table Members

Send Feedback