Spread.NET 18 Read Me
In This Topic
    ColumnHeader/RowHeader/ColumnFooter
    In This Topic

    Following are the breaking changes for Row Height.

    ColumnHeader Row Height/ RowHeader Column Width/ ColumnFooter Row Height

    In Spread WinForms 12, accessing height of the RowHeader/ColumnFooter and width of the ColumnHeader will return -1 by default, which indicates that no setting ahs been set. For example,

    Console.WriteLine(fpSpread1.ActiveSheet.RowHeader.Columns[0].Width); //returns -1
    Console.WriteLine(fpSpread1.ActiveSheet.ColumnHeader.Rows[0].Height); //returns -1
    Console.WriteLine(fpSpread1.ActiveSheet.ColumnFooter.Rows[0].Height); //returns -1
    

    The following code snippet will get the actual size of the layout:

    SpreadView spreadView = fpSpread1.ActiveSheet.ContainingViews[0];
    Console.WriteLine(spreadView.GetColumnFooterCellRectangle(0,0,0));
    Console.WriteLine(spreadView.GetColumnHeaderCellRectangle(0,0,0));
    Console.WriteLine(spreadView.GetRowHeaderCellRectangle(0,0,0));
    

    Back to ColumnHeader/RowHeader/ColumnFooter.