FlexGrid for WPF | ComponentOne
C1.WPF.FlexGrid.4.6.2 Assembly / C1.WPF.FlexGrid Namespace / IMergeManager Interface / 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 (IMergeManager)
    In This Topic
    Gets a CellRange that specifies the merged extent of a cell in a GridPanel.
    Syntax
    'Declaration
     
    Function GetMergedRange( _
       ByVal grid As C1FlexGrid, _
       ByVal cellType As CellType, _
       ByVal rng As CellRange _
    ) As CellRange
    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

    The GetMergedRange method must fulfill two requirements:

    1) The range returned must always contain the range passed in as a parameter.

    2) The range returned must be the same for any cell contained in it.

    See Also