Spread Windows Forms 6.0 Product Documentation
VerticalAlignment Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Column Class : VerticalAlignment Property


Glossary Item Box

Gets or sets the default vertical alignment for cells in this column.

Syntax

Visual Basic (Declaration) 
Public Property VerticalAlignment As CellVerticalAlignment
Visual Basic (Usage)Copy Code
Dim instance As Column
Dim value As CellVerticalAlignment
 
instance.VerticalAlignment = value
 
value = instance.VerticalAlignment
C# 
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.
C#Copy Code
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;
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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