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






Gets or sets the global padding that will be applied to all TableCell elements.

Syntax

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