[]
        
(Showing Draft Content)

GrapeCity.SpreadBuilder.Cells.MergeArea.-ctor

MergeArea Constructor

MergeArea(ushort, ushort, ushort, ushort)

Initializes a new instance of the MergeArea struct with specified cell coordinates, defining a rectangular region to be merged.

Declaration
public MergeArea(ushort rowFrom, ushort rowTo, ushort columnFrom, ushort columnTo)
Parameters
Type Name Description
ushort rowFrom

The topmost row of the merged rectangular region.

ushort rowTo

The bottommost row of the merged rectangular region.

ushort columnFrom

The leftmost column of the merged rectangular region.

ushort columnTo

The rightmost column of the merged rectangular region.

Exceptions
Type Condition
ArgumentException

Thrown when rowFrom is greater than rowTo, or columnFrom is greater than columnTo, indicating an invalid rectangular region.