Spread Windows Forms 12.0 Product Documentation
CellPadding Constructor(Int32,Int32,Int32,Int32)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > CellPadding Class > CellPadding Constructor : CellPadding Constructor(Int32,Int32,Int32,Int32)
The padding value, in pixels, for left edge.
The padding value, in pixels, for top edge.
The padding value, in pixels, for right edge.
The padding value, in pixels, for bottom edge.
Initializes a new instance of the CellPadding class.
Syntax
'Declaration
 
Public Function New( _
   ByVal left As Integer, _
   ByVal top As Integer, _
   ByVal right As Integer, _
   ByVal bottom As Integer _
)
'Usage
 
Dim left As Integer
Dim top As Integer
Dim right As Integer
Dim bottom As Integer
 
Dim instance As New CellPadding(left, top, right, bottom)
public CellPadding( 
   int left,
   int top,
   int right,
   int bottom
)

Parameters

left
The padding value, in pixels, for left edge.
top
The padding value, in pixels, for top edge.
right
The padding value, in pixels, for right edge.
bottom
The padding value, in pixels, for bottom edge.
Example
This example sets the cell padding.
FarPoint.Win.Spread.CellPadding test = new FarPoint.Win.Spread.CellPadding(2, 2, 2, 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, 2, 2, 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