FlexSheet for WPF | ComponentOne
C1.WPF.FlexGrid Namespace / MergeManager Class / GetMergedRange Method
C1FlexGrid that contains the merged cell.
CellType that specifies the type of the merged cell.
A CellRange that specifies the coordinates of the cell to be merged.

In This Topic
    GetMergedRange Method (MergeManager)
    In This Topic
    Gets a CellRange that specifies the merged extent of a cell in a GridPanel.
    Syntax
    'Declaration
     
    
    Public Overridable Function GetMergedRange( _
       ByVal grid As C1FlexGrid, _
       ByVal cellType As CellType, _
       ByVal rng As CellRange _
    ) As CellRange
    public virtual CellRange GetMergedRange( 
       C1FlexGrid grid,
       CellType cellType,
       CellRange rng
    )

    Parameters

    grid
    C1FlexGrid that contains the merged cell.
    cellType
    CellType that specifies the type of the merged cell.
    rng
    A CellRange that specifies the coordinates of the cell to be merged.

    Return Value

    A CellRange that expands the given rng over a merged range.
    Remarks
    This method expands ranges by comparing the cell contents with the content of neighboring cells and merging cells that have the same content.
    See Also