FarPoint.Win.Spread
CellVerticalAlignment Enumeration
Example  See Also 
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace : CellVerticalAlignment Enumeration


Specifies the vertical alignment of the cell contents.

Syntax

Visual Basic (Declaration) 
Public Enum CellVerticalAlignment 
   Inherits Enum
Visual Basic (Usage)Copy Code
Dim instance As CellVerticalAlignment
C# 
public enum CellVerticalAlignment : Enum 

Members

MemberDescription
General Aligns the cell contents according to the cell's interpretation of the contents
Top Aligns the cell contents to the top
Center Centers the contents in the cell vertically
Bottom Aligns the cell contents to the bottom
Justify Indicates the text is inserted some whitespaces to make the text fill the special area.
Distributed Indicates the text is inserted some whitespaces to make the text fill the special area.

Example

C#Copy Code
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;
}
Visual BasicCopy Code
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

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.CellVerticalAlignment

See Also