Spread Windows Forms 7.0 Product Documentation
Right Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > CellPadding Class : Right Property


Glossary Item Box

Gets or sets the padding, in pixels, for the right edge.

Syntax

Visual Basic (Declaration) 
Public Property Right As Integer
Visual Basic (Usage)Copy Code
Dim instance As CellPadding
Dim value As Integer
 
instance.Right = value
 
value = instance.Right
C# 
public int Right {get; set;}

Example

This example sets the Right property.
C#Copy Code
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);
VB.NETCopy Code
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 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.