Spread Windows Forms 9.0 Product Documentation
AddColumnFooterSpanCell Method
Example 


Row index of cell to start span
Column index of cell to start span
Number of rows to span
Number of columns to span
Adds a span of cells to a column footer for a sheet.
Syntax
'Declaration
 
Public Sub AddColumnFooterSpanCell( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer _
) 
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
 
instance.AddColumnFooterSpanCell(row, column, rowCount, columnCount)
public void AddColumnFooterSpanCell( 
   int row,
   int column,
   int rowCount,
   int columnCount
)

Parameters

row
Row index of cell to start span
column
Column index of cell to start span
rowCount
Number of rows to span
columnCount
Number of columns to span
Example
This example uses the AddColumnFooterSpanCell method.
fpSpread1.Sheets[0].RowCount = 10;
fpSpread1.Sheets[0].ColumnCount = 15;
// Show the column footer.
fpSpread1.Sheets[0].ColumnFooter.Visible = true;
fpSpread1.Sheets[0].ColumnFooter.RowCount = 2;
fpSpread1.Sheets[0].ColumnFooter.DefaultStyle.ForeColor = Color.Purple;
fpSpread1.Sheets[0].ColumnFooter.Columns[12].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
fpSpread1.Sheets[0].ColumnFooter.Cells[0, 12].RowSpan = 2;
fpSpread1.Sheets[0].ColumnFooter.Cells[0, 0].Value = "test";
fpSpread1.Sheets[0].AddColumnFooterSpanCell(0, 0, 1, 2);
//fpSpread1.Sheets[0].ClearColumnFooterSpanCells();
FpSpread1.Sheets(0).RowCount = 10
FpSpread1.Sheets(0).ColumnCount = 15
' Show the footer.
FpSpread1.Sheets(0).ColumnFooter.Visible = true
FpSpread1.Sheets(0).ColumnFooter.RowCount = 2
FpSpread1.Sheets(0).ColumnFooter.DefaultStyle.ForeColor = Color.Purple
FpSpread1.Sheets(0).ColumnFooter.Columns(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left
FpSpread1.Sheets(0).ColumnFooter.Cells(0, 12).RowSpan = 2
FpSpread1.Sheets(0).ColumnFooter.Cells(0, 0).Value = "test
FpSpread1.Sheets(0).AddColumnFooterSpanCell(0, 0, 1, 2)
'FpSpread1.Sheets(0).ClearColumnFooterSpanCells()
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members

 

 


Copyright © GrapeCity, inc. All rights reserved.