Spread WPF Documentation
GetSpanCell(Int32,Int32) Method
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > GetSpanCell Method : GetSpanCell(Int32,Int32) Method
The row index.
The column index.
Gets the range of cells that are spanned at a specified cell in this sheet.
Syntax
'Declaration
 
Public Overloads Function GetSpanCell( _
   ByVal row As System.Integer, _
   ByVal column As System.Integer _
) As CellRange
'Usage
 
Dim instance As Worksheet
Dim row As System.Integer
Dim column As System.Integer
Dim value As CellRange
 
value = instance.GetSpanCell(row, column)
public CellRange GetSpanCell( 
   System.int row,
   System.int column
)

Parameters

row
The row index.
column
The column index.

Return Value

Returns a CellRange object that contains the span information, or null if no span exists.
Example
This example uses the GetSpanCell method.
gcSpreadSheet1.Sheets[0].AddSpanCell(1, 1, 3, 3);
gcSpreadSheet1.Invalidate();
      
private void button1_Click(object sender, RoutedEventArgs e)
  {
       GrapeCity.Windows.SpreadSheet.Data.CellRange r;
       r = gcSpreadSheet1.Sheets[0].GetSpanCell(1, 1, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells);
      // r = gcSpreadSheet1.Sheets[0].GetSpanCell(1, 1);
      listBox1.Items.Add(r.Column.ToString());
        gcSpreadSheet1.Invalidate();
   }
GcSpreadSheet1.Sheets(0).AddSpanCell(1, 1, 3, 3)
GcSpreadSheet1.Invalidate()

    Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
        Dim r As GrapeCity.Windows.SpreadSheet.Data.CellRange
        r = GcSpreadSheet1.Sheets(0).GetSpanCell(1, 1, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells)
        'r = GcSpreadSheet1.Sheets(0).GetSpanCell(1, 1)
        ListBox1.Items.Add(r.Column.ToString())
        GcSpreadSheet1.Invalidate()
    End Sub
See Also

Reference

Worksheet Class
Worksheet Members
Overload List