GrapeCity.Xaml.SpreadSheet.Data
GetSpanCell(Int32,Int32,SheetArea) Method
Example 


The row index.
The column index.
The sheet area.
Gets the range of cells that are spanned at a specified cell on this sheet in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Function GetSpanCell( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal sheetArea As SheetArea _
) As CellRange
'Usage
 
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim sheetArea As SheetArea
Dim value As CellRange
 
value = instance.GetSpanCell(row, column, sheetArea)
public CellRange GetSpanCell( 
   int row,
   int column,
   SheetArea sheetArea
)

Parameters

row
The row index.
column
The column index.
sheetArea
The sheet area.

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);
      
private void Button_Click_1(object sender, RoutedEventArgs e)
  {
       GrapeCity.Xaml.SpreadSheet.Data.CellRange r;
       r = gcSpreadSheet1.Sheets[0].GetSpanCell(1, 1, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells);
      // r = gcSpreadSheet1.Sheets[0].GetSpanCell(1, 1);
      listBox1.Items.Add(r.Column.ToString());      
   }
GcSpreadSheet1.Sheets(0).AddSpanCell(1, 1, 3, 3)

    Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
        Dim r As GrapeCity.Xaml.SpreadSheet.Data.CellRange
        r = GcSpreadSheet1.Sheets(0).GetSpanCell(1, 1, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells)
        'r = GcSpreadSheet1.Sheets(0).GetSpanCell(1, 1)
        ListBox1.Items.Add(r.Column.ToString())       
    End Sub
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options