Spread Windows Forms 12.0 Product Documentation
VerticalAlignment Property (Column)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Column Class : VerticalAlignment Property
Gets or sets the default vertical alignment for cells in this column.
Syntax
'Declaration
 
Public Property VerticalAlignment As CellVerticalAlignment
'Usage
 
Dim instance As Column
Dim value As CellVerticalAlignment
 
instance.VerticalAlignment = value
 
value = instance.VerticalAlignment
public CellVerticalAlignment VerticalAlignment {get; set;}

Property Value

CellVerticalAlignment object containing the vertical alignment for cell contents
Remarks
This property does not apply to the rich text cell.
Example
This example specifies the text alignment for the column.
FarPoint.Win.Spread.Column col;
fpSpread1.ActiveSheet.Cells[0, 0].Text = "Alignment";
col = fpSpread1.ActiveSheet.Columns[0];
col.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
col.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
col.Width = 120;
fpSpread1.ActiveSheet.Rows[0].Height = 60;
Dim col As FarPoint.Win.Spread.Column
fpSpread1.ActiveSheet.Cells(0, 0).Text = "Alignment"
col = fpSpread1.ActiveSheet.Columns(0)
col.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right
col.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center
col.Width = 120
fpSpread1.ActiveSheet.Rows(0).Height = 60
See Also

Reference

Column Class
Column Members
CellVerticalAlignment Enumeration