Class RowColumnIndex
Represents the row and column coordinates of a cell in SfDataGrid.
Inheritance
Namespace: Syncfusion.UI.Xaml.ScrollAxis
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public sealed class RowColumnIndex : ValueType
Constructors
RowColumnIndex(Int32, Int32)
Initializes a new instance of the RowColumnIndex structure with the specified row and column coordinates.
Declaration
public RowColumnIndex(int r, int c)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | r | The row index. |
| System.Int32 | c | The column index. |
Properties
ColumnIndex
Gets or sets the column index.
Declaration
public int ColumnIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The column index. |
Empty
Gets the empty instance with RowIndex and ColumnIndex set to System.Int32.MinValue.
Declaration
public static RowColumnIndex Empty { get; }
Property Value
| Type | Description |
|---|---|
| RowColumnIndex | The empty RowColumnIndex instance. |
IsEmpty
Gets a value indicating whether this instance is empty.
Declaration
public bool IsEmpty { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | true if this instance is empty; otherwise, false. |
RowIndex
Gets or sets the row index.
Declaration
public int RowIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The row index. |
Methods
Equals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | Another object to compare to. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | A 32-bit signed integer that is the hash code for this instance. |
ToString()
Returns the type name with state of this instance.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string that represents the current row and column coordinates. |
Operators
Equality(RowColumnIndex, RowColumnIndex)
Implements the operator ==.
Declaration
public static bool operator ==(RowColumnIndex r1, RowColumnIndex r2)
Parameters
| Type | Name | Description |
|---|---|---|
| RowColumnIndex | r1 | The first row-column index. |
| RowColumnIndex | r2 | The second row-column index. |
Returns
| Type | Description |
|---|---|
| System.Boolean | The result of the operator. |
Inequality(RowColumnIndex, RowColumnIndex)
Implements the operator !=.
Declaration
public static bool operator !=(RowColumnIndex r1, RowColumnIndex r2)
Parameters
| Type | Name | Description |
|---|---|---|
| RowColumnIndex | r1 | The first row-column index. |
| RowColumnIndex | r2 | The second row-column index. |
Returns
| Type | Description |
|---|---|
| System.Boolean | The result of the operator. |