Gets or sets the inset of the top border or margin in pixels.
Syntax
Visual Basic (Declaration) | |
---|
Public Property Top As Integer |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Inset
Dim value As Integer
instance.Top = value
value = instance.Top |
C# | |
---|
public int Top {get; set;} |
Property Value
Integer number of pixels
Example
This example sets an inset for the specified cell.
C# | Copy Code |
---|
FarPoint.Web.Spread.Inset inset = New FarPoint.Web.Spread.Inset();
inset.Left = 35;
inset.Top = 5;
inset.Right = 5;
inset.Bottom = 35;
FpSpread1.ActiveSheetView.Cells(0, 0).Margin = inset;
|
Visual Basic | Copy Code |
---|
Dim inset As New FarPoint.Web.Spread.Inset
inset.Left = 35
inset.Top = 5
inset.Right = 5
inset.Bottom = 35
FpSpread1.ActiveSheetView.Cells(0, 0).Margin = inset |
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