Spread for ASP.NET 11 Product Documentation
ResetVerticalAlignment Method (Cell)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Cell Class : ResetVerticalAlignment Method
Resets the vertical alignment for the cell and makes the cell inherit the vertical alignment from the default cell.
Syntax
'Declaration
 
Public Sub ResetVerticalAlignment() 
'Usage
 
Dim instance As Cell
 
instance.ResetVerticalAlignment()
public void ResetVerticalAlignment()
Example
This example uses the ResetVerticalAlignment method.
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();
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()
See Also

Reference

Cell Class
Cell Members