Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / Cell Class / ResetVerticalAlignment Method

In This Topic
    ResetVerticalAlignment Method (Cell)
    In This Topic
    Resets the vertical alignment for the cell and makes the cell inherit the vertical alignment from the default cell.
    Public Sub ResetVerticalAlignment() 
    Dim instance As Cell
    public void ResetVerticalAlignment()
    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;
    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
    See Also