Spread for ASP.NET 7.0 Product Documentation
GetMergeCells(Int32,Int32,Int32,Int32) Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class : GetMergeCells(Int32,Int32,Int32,Int32) Method


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

Glossary Item Box

Gets the merged cell ranges in the specified range.

Syntax

Visual Basic (Declaration) 
Public Function GetMergeCells( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer _
) As ArrayList
Visual Basic (Usage)Copy Code
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)
C# 
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.
C#Copy Code
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 + "')");
}
Visual BasicCopy Code
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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.