Class CoveredCellInfo
A class that contains the information about the covered cells.
Inheritance
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.iOS.dll
Syntax
public class CoveredCellInfo : Object, IComparable<CoveredCellInfo>, IComparable, IDisposable
Constructors
CoveredCellInfo(Int32, Int32)
Initializes a new instance of the CoveredCellInfo class.
Declaration
public CoveredCellInfo(int left, int right)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | The left column index of the covered cell. |
System.Int32 | right | The right column index of the covered cell. |
CoveredCellInfo(Int32, Int32, Int32)
Initializes a new instance of the CoveredCellInfo class.
Declaration
public CoveredCellInfo(int index, int left, int right)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The row index of the covered cell. |
System.Int32 | left | The left column index of the covered cell. |
System.Int32 | right | The right column index of the covered cell. |
CoveredCellInfo(Int32, Int32, String)
Initializes a new instance of the CoveredCellInfo class.
Declaration
public CoveredCellInfo(int left, int right, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | The left column index of the covered cell. |
System.Int32 | right | The right column index of the covered cell. |
System.String | name | The name of the covered cell. |
Properties
Left
Gets the left column index of the covered cell.
Declaration
public int Left { get; }
Property Value
Type | Description |
---|---|
System.Int32 | A value that determines the left column index of the covered cell. |
Name
Gets the name of the column for the corresponding covered cell.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the column for the corresponding covered cell. |
Right
Gets the right column index of the covered cell.
Declaration
public int Right { get; }
Property Value
Type | Description |
---|---|
System.Int32 | A value that determines the right column index of the covered cell. |
RowIndex
Gets the row index for the covered cell.
Declaration
public int RowIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | A value that determines the row index of the covered cell. |
RowSpan
Gets the row span for the covered cell.
Declaration
public int RowSpan { get; }
Property Value
Type | Description |
---|---|
System.Int32 | A value that determines the row span of the covered cell. |
Width
Gets the width of the covered cell.
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
System.Int32 | A value that determines the width of the covered cell. |
Methods
CompareTo(CoveredCellInfo)
Compares the values in the given CoveredCellInfo object with the current instance, returning an integer that indicates the relationship. An implementation of this method must return a value less than zero if this is less than the given CoveredCellInfo, zero if this is equal to the given CoveredCellInfo, or a value greater than zero if this is greater than the given CoveredCellInfo.
Declaration
public int CompareTo(CoveredCellInfo coveredCellInfo)
Parameters
Type | Name | Description |
---|---|---|
CoveredCellInfo | coveredCellInfo | A CoveredCellInfo object which is to be compared with the current instance. |
Returns
Type | Description |
---|---|
System.Int32 | An integer that indicates the relationship between the current instance and the given CoveredCellInfo object. |
CompareTo(Object)
Compares the given object to another object, returning an integer that indicates the relationship. An implementation of this method must return a value less than zero if this is less than the given object, zero if this is equal to the given object, or a value greater than zero if this is greater than the given object.
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An object to be compared with the current object. |
Returns
Type | Description |
---|---|
System.Int32 | An integer that indicates the relationship between the current object and the given object. |
Dispose()
Releases the resources used by the component.
Declaration
public void Dispose()
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | if true - release both managed and unmanaged resources; if false - release only unmanaged resources. |
Equals(Object)
Returns a boolean value indicating if the passed object is Equal to the current object. Equality is defined as object equality for reference types and bitwise equality for value types using a loader trick to replace Equals with EqualsValue for value types.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An object to be compared with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | Returns a boolean value indicating whether the passed object is equal to the current object. |
GetHashCode()
GetHashCode is intended to serve as a hash function for this object. Based on the contents of the object, the hash function will return a suitable value with a relatively random distribution over the various inputs.
The default implementation returns the [....] block index for this instance. Calling it on the same object multiple times will return the same value, so it will technically meet the needs of a hash function, but it's less than ideal. Objects (especially value classes) should override this method.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Return a suitable value with a relatively random distribution over the various inputs based on the contents of the object. |
ToString()
Returns a string which represents the object instance. The default for an object is to return the fully qualified name of the class.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The fully qualified name of the class. |