Class TreeGridCoveredCellInfo
Represents a class that defines the merge range by Left, Right and RowIndex.
Inheritance
Namespace: Syncfusion.UI.Xaml.TreeGrid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class TreeGridCoveredCellInfo : Object, IComparable<TreeGridCoveredCellInfo>, IComparable
Constructors
TreeGridCoveredCellInfo(Int32, Int32, Int32)
Initializes an instance of the TreeGridCoveredCellInfo class.
Declaration
public TreeGridCoveredCellInfo(int left, int right, int rowindex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | The left index of the range. |
System.Int32 | right | The right index of the range. |
System.Int32 | rowindex | The row index to be merged. |
Properties
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 |
RowIndex
Gets the row index of the covered range.
Declaration
public int RowIndex { get; }
Property Value
Type |
---|
System.Int32 |
Methods
CompareTo(TreeGridCoveredCellInfo)
Compares the given covered range with the existing range.
Declaration
public int CompareTo(TreeGridCoveredCellInfo other)
Parameters
Type | Name | Description |
---|---|---|
TreeGridCoveredCellInfo | other | The range that needs to be compared. |
Returns
Type | Description |
---|---|
System.Int32 | Returns 0 if both values are equals; otherwise, returns Non-Zero. |
Contains(Int32, Int32)
Checks whether the given row and column index exists in the covered 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 exists within the covered range. Otherwise, false. |
ContainsColumn(Int32)
Checks whether the specified column is exists in the covered range.
Declaration
public bool ContainsColumn(int columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | columnIndex | The column index. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the given column index presents in the covered range. Otherwise, false. |
Equals(Object)
Overridden to compare the given object with the TreeGridCoveredCellInfo].
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, false. |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
---|
System.Int32 |
ToString()
Formats the given range value as string.
Declaration
public override string ToString()
Returns
Type |
---|
System.String |