Spread Windows Forms 11.0 Product Documentation
CellPadding Constructor(CellPadding)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > CellPadding Class > CellPadding Constructor : CellPadding Constructor(CellPadding)
The instance of CellPadding class that initializes the new instance.
Initializes a new instance of the CellPadding class.
Syntax
'Declaration
 
Public Function New( _
   ByVal cellPadding As CellPadding _
)
'Usage
 
Dim cellPadding As CellPadding
 
Dim instance As New CellPadding(cellPadding)
public CellPadding( 
   CellPadding cellPadding
)

Parameters

cellPadding
The instance of CellPadding class that initializes the new instance.
Example
This example sets the cell padding.
FarPoint.Win.Spread.CellPadding test = new FarPoint.Win.Spread.CellPadding(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(New FarPoint.Win.Spread.CellPadding(2))
fpSpread1.Sheets(0).Cells(0, 0).CellPadding = test
fpSpread1.Sheets(0).Cells(0, 0).Text = "test"
See Also

Reference

CellPadding Class
CellPadding Members
Overload List