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






Gets or sets the spacing between cells in table.

Syntax

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