Class MergeCellsRecord.MergedRegion
This class contains information about the region of merged cells.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Parser.Biff_Records
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
[CLSCompliant(false)]
public class MergedRegion : ICloneable
Constructors
MergedRegion(MergeCellsRecord.MergedRegion)
Creates copy of region.
Declaration
public MergedRegion(MergeCellsRecord.MergedRegion region)
Parameters
Type | Name | Description |
---|---|---|
MergeCellsRecord.MergedRegion | region | Region to copy. |
MergedRegion(Int32, Int32, Int32, Int32)
Creates region by specified first and last rows and first and last columns.
Declaration
public MergedRegion(int rowFrom, int rowTo, int colFrom, int colTo)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowFrom | First row of the region. |
System.Int32 | rowTo | Last row of the region. |
System.Int32 | colFrom | First column of the region. |
System.Int32 | colTo | Last row of the region. |
Properties
CellsCount
Returns number of cells used by
Declaration
public int CellsCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ColumnFrom
Read-only. First column of the region.
Declaration
public int ColumnFrom { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ColumnTo
Gets/sets last column of the region.
Declaration
public int ColumnTo { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RowFrom
Read-only. First row of the region.
Declaration
public int RowFrom { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RowTo
Gets/sets last row of the region.
Declaration
public int RowTo { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Clone()
Creates a copy of the current object.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A copy of the current object. |
Equals(MergeCellsRecord.MergedRegion, MergeCellsRecord.MergedRegion)
Compares two merged regions.
Declaration
public static bool Equals(MergeCellsRecord.MergedRegion region1, MergeCellsRecord.MergedRegion region2)
Parameters
Type | Name | Description |
---|---|---|
MergeCellsRecord.MergedRegion | region1 | First region to compare. |
MergeCellsRecord.MergedRegion | region2 | Second region to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as a hash function for a MergedRegion object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current object. |
Overrides
MoveRegion(Int32, Int32)
Moves region.
Declaration
public void MoveRegion(int iRowDelta, int iColDelta)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | iRowDelta | Row delta. |
System.Int32 | iColDelta | Column delta. |