Spread Windows Forms 10.0 Product Documentation
Top Property (CellPadding)
Example 


Gets or sets the padding, in pixels, for the top edge.
Syntax
'Declaration
 
Public Property Top As Integer
'Usage
 
Dim instance As CellPadding
Dim value As Integer
 
instance.Top = value
 
value = instance.Top
public int Top {get; set;}
Example
This example sets the Top property.
fpSpread1.ActiveSheet.Cells[0, 0].Text = "a";
fpSpread1.ActiveSheet.Cells[0,0].CellPadding.Top = Convert.ToInt16(1);
fpSpread1.ActiveSheet.Cells[0, 0].CellPadding.Left = Convert.ToInt16(3);
fpSpread1.ActiveSheet.Cells[0, 0].CellPadding.Bottom = Convert.ToInt16(1);
fpSpread1.ActiveSheet.Cells[0, 0].CellPadding.Right = Convert.ToInt16(1);
fpSpread1.ActiveSheet.Cells(0, 0).Text = "a"
fpSpread1.ActiveSheet.Cells(0,0).CellPadding.Top = Convert.ToInt16(1)
fpSpread1.ActiveSheet.Cells(0, 0).CellPadding.Left = Convert.ToInt16(3)
fpSpread1.ActiveSheet.Cells(0, 0).CellPadding.Bottom = Convert.ToInt16(1)
fpSpread1.ActiveSheet.Cells(0, 0).CellPadding.Right = Convert.ToInt16(1)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

CellPadding Class
CellPadding Members

 

 


Copyright © GrapeCity, inc. All rights reserved.