[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IRange.Union

Union Method

Union(IRange)

Returns an IRange object that represents the union of two ranges.
If range2 is from a different worksheet, an exception is thrown.

Declaration
IRange Union(IRange range2)
Function Union(range2 As IRange) As IRange
Parameters
Type Name Description
IRange range2

The range to union with this range.

Returns
Type Description
IRange

A new range which consists of the union of this range and range2.

Union(params IRange[])

Returns an IRange object that represents the union of several ranges.
If one or more ranges from a different worksheet are specified, an exception is thrown.

Declaration
IRange Union(params IRange[] ranges)
Function Union(ParamArray ranges As IRange()) As IRange
Parameters
Type Name Description
IRange[] ranges

Other ranges to union with this range.

Returns
Type Description
IRange

A new range which consists of the union of this range and other ranges.