Spread for ASP.NET 7.0 Product Documentation
ResetVerticalAlignment Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Cell Class : ResetVerticalAlignment Method


Glossary Item Box

Resets the vertical alignment for the cell and makes the cell inherit the vertical alignment from the default cell.

Syntax

Visual Basic (Declaration) 
Public Sub ResetVerticalAlignment() 
Visual Basic (Usage)Copy Code
Dim instance As Cell
 
instance.ResetVerticalAlignment()
C# 
public void ResetVerticalAlignment()

Example

This example uses the ResetVerticalAlignment method.
C#Copy Code
FarPoint.Web.Spread.Cell mycell;
mycell = FpSpread1.Cells[1, 1];
mycell.Value = 5;
object tagvalue;
tagvalue = "tag";
mycell.HorizontalAlign = HorizontalAlign.Center;
mycell.VerticalAlign = VerticalAlign.Top;
FpSpread1.ActiveSheetView.Rows[1].Height = 80;
//mycell.ResetTag();
//mycell.ResetValue();
//mycell.ResetHorizontalAlignment();
//mycell.ResetVerticalAlignment();
VB.NETCopy Code
Dim mycell As FarPoint.Web.Spread.Cell
mycell = FpSpread1.Cells(1, 1)
mycell.Value = 5
Dim tagvalue As Object
tagvalue = "tag"
mycell.HorizontalAlign = HorizontalAlign.Center
mycell.VerticalAlign = VerticalAlign.Top
FpSpread1.ActiveSheetView.Rows(1).Height = 80
'mycell.ResetTag()
'mycell.ResetValue()
'mycell.ResetHorizontalAlignment()
'mycell.ResetVerticalAlignment()

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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