Intersoft ClientUI Documentation
Width Property
See Also  Send Feedback
Intersoft.Client.Documents Namespace > Table Class : Width Property






Gets or sets the width of the table.

Syntax

Visual Basic (Declaration) 
Public Property Width As Double
Visual Basic (Usage)Copy Code
Dim instance As Table
Dim value As Double
 
instance.Width = value
 
value = instance.Width
C# 
public double Width {get; set;}
Delphi 
public read-write property Width: Double; 
JScript 
public function get,set Width : double
Managed Extensions for C++ 
public: __property double get_Width();
public: __property void set_Width( 
   double value
);
C++/CLI 
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 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.