Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / CellPadding Class / CellPadding Constructor / CellPadding Constructor(Int32)
The padding value, in pixels, for all edges.

In This Topic
    CellPadding Constructor(Int32)
    In This Topic
    Initializes a new instance of the CellPadding class.
    Public Function New( _
       ByVal all As Integer _
    Dim all As Integer
    Dim instance As New CellPadding(all)
    public CellPadding( 
       int all


    The padding value, in pixels, for all edges.
    This example sets the cell padding.
    FarPoint.Win.Spread.CellPadding test = new FarPoint.Win.Spread.CellPadding(2);            
    fpSpread1.Sheets[0].Cells[0, 0].CellPadding = test;
    fpSpread1.Sheets[0].Cells[0, 0].Text = "test";
    Dim test As FarPoint.Win.Spread.CellPadding
    test = New FarPoint.Win.Spread.CellPadding(2)
    fpSpread1.Sheets(0).Cells(0, 0).CellPadding = test
    fpSpread1.Sheets(0).Cells(0, 0).Text = "test"
    See Also