Spread Windows Forms 10.0 Product Documentation
RemoveColumnFooterSpanCell Method
Example 


Row index of anchor cell for span (at which spanned cells started)
Column index of anchor cell for span (at which spanned cells started)
Removes the span that contains a specified anchor cell from a range of cells in the column footers.
Syntax
'Declaration
 
Public Sub RemoveColumnFooterSpanCell( _
   ByVal row As Integer, _
   ByVal column As Integer _
) 
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
 
instance.RemoveColumnFooterSpanCell(row, column)
public void RemoveColumnFooterSpanCell( 
   int row,
   int column
)

Parameters

row
Row index of anchor cell for span (at which spanned cells started)
column
Column index of anchor cell for span (at which spanned cells started)
Example
This example uses the RemoveColumnFooterSpanCell 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, 0].RowSpan = 2;
fpSpread1.Sheets[0].ColumnFooter.Cells[0, 0].Value = "test";

private void button1_Click(object sender, EventArgs e)
{
   fpSpread1.Sheets[0].RemoveColumnFooterSpanCell(0, 0);
}
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, 0).RowSpan = 2
FpSpread1.Sheets(0).ColumnFooter.Cells(0, 0).Value = "test"

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
   FpSpread1.Sheets(0).RemoveColumnFooterSpanCell(0, 0)
End Sub
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.