Spread Windows Forms 15.0
Spread Windows Forms 15.0 Product Documentation / Developer's Guide / Headers / Customizing the Sheet Corner Appearance / Cell Spans in the Sheet Corner
In This Topic
    Cell Spans in the Sheet Corner
    In This Topic

    Cell spans are supported in the sheet corner. Any number of rows and columns of cells can be selected and merged to create cell spans. You can set spans of cells in rows or columns or both.

    Cell span in the sheet corner

    For more information on creating cell spans, refer to Creating a Span of Cells.

    Example

    The following code creates a span of row cells and a span of column cells in the sheet corner.

    C#
    Copy Code
    fpSpread1.ActiveSheet.AllowTableCorner = true;
    fpSpread1.ActiveSheet.SheetCorner.ColumnCount = 6;
    fpSpread1.ActiveSheet.SheetCorner.RowCount = 7;
    fpSpread1.ActiveSheet.SheetCorner.Cells[1, 2].ColumnSpan = 3;
    fpSpread1.ActiveSheet.SheetCorner.Cells[1, 2].RowSpan = 4;
    
    VB
    Copy Code
    fpSpread1.ActiveSheet.AllowTableCorner = True
    fpSpread1.ActiveSheet.SheetCorner.ColumnCount = 6
    fpSpread1.ActiveSheet.SheetCorner.RowCount = 7
    fpSpread1.ActiveSheet.SheetCorner.Cells(1, 2).ColumnSpan = 3
    fpSpread1.ActiveSheet.SheetCorner.Cells(1, 2).RowSpan = 4
    
    See Also