Class TableViewCellSlotRange
Represents a coordinate-based range of cell slots in a TableView.
public class TableViewCellSlotRange
- Inheritance
-
objectTableViewCellSlotRange
Constructors
TableViewCellSlotRange(int, int, int, int)
Initializes a new instance of the TableViewCellSlotRange class using starting indices and dimensions.
public TableViewCellSlotRange(int firstRowIndex, int firstColumnIndex, int rowCount, int columnCount)
Parameters
firstRowIndexintfirstColumnIndexintrowCountintcolumnCountint
Properties
Columns
Gets the number of columns spanned by this range.
public int Columns { get; }
Property Value
- int
FirstColumn
Gets the starting column index of the range.
public int FirstColumn { get; }
Property Value
- int
FirstRow
Gets the starting row index of the range.
public int FirstRow { get; }
Property Value
- int
FirstSlot
Gets the first cell slot in the range.
public TableViewCellSlot FirstSlot { get; }
Property Value
LastColumn
Gets the last column index included in the range.
public int LastColumn { get; }
Property Value
- int
LastRow
Gets the last row index included in the range.
public int LastRow { get; }
Property Value
- int
LastSlot
Gets the last cell slot in the range.
public TableViewCellSlot LastSlot { get; }
Property Value
Length
Gets the total number of cell slots in the range.
public int Length { get; }
Property Value
- int
Rows
Gets the number of rows spanned by this range.
public int Rows { get; }
Property Value
- int
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
FromCoordinates(int, int, int, int)
Helper factory to initialize using start and end coordinates directly.
public static TableViewCellSlotRange FromCoordinates(int startRow, int startCol, int endRow, int endCol)
Parameters
startRowintstartColintendRowintendColint
Returns
FromSlots(TableViewCellSlot, TableViewCellSlot?)
Helper factory to initialize using two TableViewCellSlot instances.
public static TableViewCellSlotRange FromSlots(TableViewCellSlot firstSlot, TableViewCellSlot? lastSlot = null)
Parameters
firstSlotTableViewCellSlotlastSlotTableViewCellSlot?
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator ==(TableViewCellSlotRange?, TableViewCellSlotRange?)
public static bool operator ==(TableViewCellSlotRange? left, TableViewCellSlotRange? right)
Parameters
leftTableViewCellSlotRangerightTableViewCellSlotRange
Returns
- bool
operator !=(TableViewCellSlotRange?, TableViewCellSlotRange?)
public static bool operator !=(TableViewCellSlotRange? left, TableViewCellSlotRange? right)
Parameters
leftTableViewCellSlotRangerightTableViewCellSlotRange
Returns
- bool