Visual Basic (Declaration) | |
---|---|
Public Property VerticalAlignment As CellVerticalAlignment |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As AlternatingRow 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 contentsTo create alternating rows, first set the AlternatingRows.Count property to specify the number of alternating row patterns, then set the properties for each pattern.
This example specifies the text alignment for the alternating row.
C# | Copy Code |
---|---|
FarPoint.Win.Spread.AlternatingRow altrow;
altrow = fpSpread1.ActiveSheet.AlternatingRows[0];
altrow.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
altrow.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Top;
fpSpread1.ActiveSheet.Rows[0].Height = 80;
fpSpread1.ActiveSheet.Columns[0].Width = 120;
fpSpread1.ActiveSheet.Cells[0, 0].Text = "Alignment"; |
Visual Basic | Copy Code |
---|---|
Dim altrow As FarPoint.Win.Spread.AlternatingRow altrow = FpSpread1.ActiveSheet.AlternatingRows(0) altrow.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right altrow.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Top FpSpread1.ActiveSheet.Rows(0).Height = 80 FpSpread1.ActiveSheet.Columns(0).Width = 120 FpSpread1.ActiveSheet.Cells(0, 0).Text = "Alignment" |
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
Reference
AlternatingRow ClassAlternatingRow Members
CellVerticalAlignment Enumeration
Count Property