Spread ASP.NET 6.0 Product Documentation
GetMergeCells(Int32,Int32,Int32,Int32) Method
See Also  Example Send Feedback
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.