Table of Contents

Class MergedRange

Namespace
SheetStream.Reading
Assembly
SheetStream.dll

A rectangle of merged cells read from a sheet. Only the top-left cell of a merge carries a value.

public sealed class MergedRange
Inheritance
MergedRange
Inherited Members

Properties

FromColumn

1-based first column of the merge (column A is 1).

public int FromColumn { get; }

Property Value

int

FromRow

1-based first row of the merge.

public int FromRow { get; }

Property Value

int

Range

The merge in A1 form, such as "A1:D1".

public string Range { get; }

Property Value

string

ToColumn

1-based last column of the merge.

public int ToColumn { get; }

Property Value

int

ToRow

1-based last row of the merge.

public int ToRow { get; }

Property Value

int

Methods

Contains(int, int)

True when the 1-based cell lies inside the merge (its top-left cell included).

public bool Contains(int row, int column)

Parameters

row int
column int

Returns

bool

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.