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;
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
FpSpread1.ActiveSheet.Rows(0).Height = 80
End Sub