Spread Windows Forms 10.0 Product Documentation
AddColumnHeaderSpanCell Method
Example 


Row index of cell to start span
Column index of cell to start span
Number of rows to span
Number of columns to span
Adds a span of cells to a column header for a sheet.
Syntax
'Declaration
 
Public Sub AddColumnHeaderSpanCell( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer _
) 
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
 
instance.AddColumnHeaderSpanCell(row, column, rowCount, columnCount)
public void AddColumnHeaderSpanCell( 
   int row,
   int column,
   int rowCount,
   int columnCount
)

Parameters

row
Row index of cell to start span
column
Column index of cell to start span
rowCount
Number of rows to span
columnCount
Number of columns to span
Remarks
To add spans to row headers, call the AddRowHeaderSpanCell method.
Example
FarPoint.Win.Spread.SheetView sv;
fpSpread1.ActiveSheet.ColumnHeader.RowCount = 4;
sv = fpSpread1.ActiveSheet;
sv.AddColumnHeaderSpanCell(0, 0, 2, 2);
Dim sv As FarPoint.Win.Spread.SheetView
FpSpread1.ActiveSheet.ColumnHeader.RowCount = 4
sv = FpSpread1.ActiveSheet
sv.AddColumnHeaderSpanCell(0, 0, 2, 2)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members
AddRowHeaderSpanCell Method

User-Task Documentation

Spanning Cells in a Header

 

 


Copyright © GrapeCity, inc. All rights reserved.