GrapeCity.Xaml.SpreadSheet.Data
AddSpanCell(CellRange,SheetArea) Method
Example 


The cell range to span.
The sheet area.
Adds a span of cells in this sheet in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Sub AddSpanCell( _
   ByVal range As CellRange, _
   ByVal sheetArea As SheetArea _
) 
'Usage
 
Dim instance As Worksheet
Dim range As CellRange
Dim sheetArea As SheetArea
 
instance.AddSpanCell(range, sheetArea)
public void AddSpanCell( 
   CellRange range,
   SheetArea sheetArea
)

Parameters

range
The cell range to span.
sheetArea
The sheet area.
Example
This example uses the AddSpanCell method.
GrapeCity.Xaml.SpreadSheet.Data.CellRange r;
r = new GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 3, 3);
gcSpreadSheet1.Sheets[0].AddSpanCell(r, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells);
//gcSpreadSheet1.Sheets[0].AddSpanCell(1, 1, 3, 3);
//gcSpreadSheet1.Sheets[0].AddSpanCell(4, 0, 2, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells);

gcSpreadSheet1.Sheets[0].RowHeader.ColumnCount = 2;
gcSpreadSheet1.Sheets[0].ColumnHeader.RowCount = 2;
GrapeCity.Xaml.SpreadSheet.Data.CellRange r2;
r2 = new GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 2, 2);
gcSpreadSheet1.Sheets[0].AddSpanCell(r2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.RowHeader);
Dim r As GrapeCity.Xaml.SpreadSheet.Data.CellRange
r = New GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 3, 3)
GcSpreadSheet1.Sheets(0).AddSpanCell(r, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells)
' GcSpreadSheet1.Sheets(0).AddSpanCell(1, 1, 3, 3)
' GcSpreadSheet1.Sheets(0).AddSpanCell(4, 0, 2, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells)
GcSpreadSheet1.Sheets(0).RowHeader.ColumnCount = 2
GcSpreadSheet1.Sheets(0).ColumnHeader.RowCount = 2
Dim r2 As GrapeCity.Xaml.SpreadSheet.Data.CellRange
r2 = New GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 2, 2)
GcSpreadSheet1.Sheets(0).AddSpanCell(r2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.RowHeader)
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