Spread Windows Forms 11.0 Product Documentation
RemoveColumnFooterSpanCell Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : RemoveColumnFooterSpanCell Method
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
See Also

Reference

SheetView Class
SheetView Members