GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > GetSpanCell Method : GetSpanCell(Int32,Int32) Method |
'Declaration Public Overloads Function GetSpanCell( _ ByVal row As System.Integer, _ ByVal column As System.Integer _ ) As CellRange
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
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6