Intersoft ClientUI Documentation
CellSpacing Property



Gets or sets the spacing between cells in table.
Syntax
Public Property CellSpacing As Double
Dim instance As Table
Dim value As Double
 
instance.CellSpacing = value
 
value = instance.CellSpacing
public double CellSpacing {get; set;}
public:
property double CellSpacing {
   double get();
   void set (    double value);
}
Remarks

You can specify cell spacing and cell padding in Table element using CellSpacing and CellPadding properties respectively. CellSpacing property determines the spacing between each cells, while CellPadding property determines default padding applied to each TableCell. Note that when CellSpacing is set to 0, the border definitions will automatically collapse to a single border definition. For further information about Table border definition, see Understanding Table Formatting.

XAML
Copy Code
<Intersoft:FlowDocument>
    <Intersoft:Table Borders="1,Single,#FF000000" CellSpacing="5" CellPadding="5">
        <Intersoft:Table.Columns>
            <Intersoft:TableColumn />
            <Intersoft:TableColumn />
            <Intersoft:TableColumn />
        </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: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>

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