Spread Windows Forms 12.0 Product Documentation
CellHorizontalAlignment Enumeration
Example Example 

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace : CellHorizontalAlignment Enumeration
Specifies the horizontal alignment of the cell contents.
Public Enum CellHorizontalAlignment 
   Inherits System.Enum
Dim instance As CellHorizontalAlignment
public enum CellHorizontalAlignment : System.Enum 
CenterCenters the content in the cell horizontally
DistributedIndicates that whitespace has been inserted to make the text fill the special area.
GeneralAligns the cell content according to the cell's interpretation of the content
JustifyIndicates that whitespace has been inserted to make the text fill the special area.
LeftAligns the cell content to the left
RightAligns the cell content to the right
using FarPoint.Win.Spread;
using FarPoint.Win;

private void Form1_Load(object sender, System.EventArgs e)
     FarPoint.Win.Spread.Cell acell;
     acell = fpSpread1.ActiveSheet.Cells[0, 0];
     fpSpread1.ActiveSheet.Cells[0, 0].Text = "Alignment";
     acell.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
     acell.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Top;
     acell.Locked = true;
     fpSpread1.ActiveSheet.Rows[0].Height = 80;
Imports FarPoint.Win.Spread
Imports FarPoint.Win

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
     Dim acell As FarPoint.Win.Spread.Cell
     acell = FpSpread1.ActiveSheet.Cells(0, 0)
     fpSpread1.ActiveSheet.Cells(0, 0).Text = "Alignment"
     acell.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right
     acell.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Top
     acell.Locked = True
     fpSpread1.ActiveSheet.Rows(0).Height = 80
End Sub
Inheritance Hierarchy


See Also


FarPoint.Win.Spread Namespace
HorizontalAlignment Property (Cell Class)

User-Task Documentation

Aligning Cell Contents