Class CoveredCellInfo
Represents a class that used to define the merge cells range by top, left, bottom and right.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class CoveredCellInfo : IComparable<CoveredCellInfo>
Constructors
CoveredCellInfo(Int32, Int32, Int32, Int32)
Initializes a new instance of the CoveredCellInfo class.
Declaration
public CoveredCellInfo(int left, int right, int top, int bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | The left index of the range. |
System.Int32 | right | The right index of the range. |
System.Int32 | top | The top index of the range. |
System.Int32 | bottom | The bottom index of the range. |
Properties
Bottom
Gets the bottom index of the covered range.
Declaration
public int Bottom { get; }
Property Value
Type |
---|
System.Int32 |
Height
Gets the height of the range.
Declaration
public int Height { get; }
Property Value
Type |
---|
System.Int32 |
Left
Gets the left index of the covered range.
Declaration
public int Left { get; }
Property Value
Type |
---|
System.Int32 |
Right
Gets the right index of the covered range.
Declaration
public int Right { get; }
Property Value
Type |
---|
System.Int32 |
Top
Gets the top index of the covered range.
Declaration
public int Top { get; }
Property Value
Type |
---|
System.Int32 |
Width
Gets the width of the covered cells.
Declaration
public int Width { get; }
Property Value
Type |
---|
System.Int32 |
Methods
CompareTo(CoveredCellInfo)
Compares the given range with the existing range.
Declaration
public int CompareTo(CoveredCellInfo other)
Parameters
Type | Name | Description |
---|---|---|
CoveredCellInfo | other | The range which needs to be compared. |
Returns
Type | Description |
---|---|
System.Int32 | Return 0, if both values are equals; otherwise return Non-Zero. |
Contains(Int32, Int32)
Checks whether the given row and column index is present in the range or not.
Declaration
public bool Contains(int rowIndex, int columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index. |
System.Int32 | columnIndex | The column index. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true, If the row index is present with in the range; Otherwise return false. |
ContainsColumn(Int32)
Determines the specified column is inside range.
Declaration
public bool ContainsColumn(int columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | columnIndex | The column index. |
Returns
Type | Description |
---|---|
System.Boolean | Return true, when the given column index is present in the range; otherwise return false. |
ContainsRow(Int32)
Determines the specified row is inside span.
Declaration
public bool ContainsRow(int rowIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the row is present in the covered cells range; otherwise return false. |
Equals(Object)
Overridden to compare the given object with the CoveredCellInfo.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object which needs to be compared. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if both objects are equal, otherwise return false. |