Spread for ASP.NET 8.0 Product Documentation
GetMergeCells(Int32,Int32,Int32,Int32) Method
Example 


Row index of the start of the range to search for merged cells
Column index of the start of the range to search for merged cells
Number of rows of the range to search for merged cells
Number of columns of the range to search for merged cells
Gets the merged cell ranges in the specified range.
Syntax
'Declaration
 
Public Function GetMergeCells( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer _
) As ArrayList
'Usage
 
Dim instance As FpSpread
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
Dim value As ArrayList
 
value = instance.GetMergeCells(row, column, rowCount, columnCount)
public ArrayList GetMergeCells( 
   int row,
   int column,
   int rowCount,
   int columnCount
)

Parameters

row
Row index of the start of the range to search for merged cells
column
Column index of the start of the range to search for merged cells
rowCount
Number of rows of the range to search for merged cells
columnCount
Number of columns of the range to search for merged cells

Return Value

ArrayList of CellRange objects containing ranges of cells
Example
This example sets the border style of the focus rectangle.
protected override void Render(System.Web.UI.HtmlTextWriter writer) 
{
    ArrayList al;
    al = FpSpread1.GetMergeCells(0, 0, 2, 0);

    string msg = al.Count.ToString(); 
    Response.Write("alert('" + msg + "')");
}
Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
    Dim al As ArrayList
    al = FpSpread1.GetMergeCells(0, 0, 2, 0)

    Dim msg As String = al.Count.ToString()
    Response.Write("alert('" & msg & "')")
End Sub
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

FpSpread Class
FpSpread Members

 

 


Copyright © GrapeCity, inc. All rights reserved.