Table of Contents

Class TableViewCellSlotRange

Namespace
WinUI.TableView
Assembly
WinUI.TableView.dll

Represents a coordinate-based range of cell slots in a TableView.

public class TableViewCellSlotRange
Inheritance
object
TableViewCellSlotRange

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

firstRowIndex int
firstColumnIndex int
rowCount int
columnCount int

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

TableViewCellSlot

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

TableViewCellSlot

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

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

startRow int
startCol int
endRow int
endCol int

Returns

TableViewCellSlotRange

FromSlots(TableViewCellSlot, TableViewCellSlot?)

Helper factory to initialize using two TableViewCellSlot instances.

public static TableViewCellSlotRange FromSlots(TableViewCellSlot firstSlot, TableViewCellSlot? lastSlot = null)

Parameters

firstSlot TableViewCellSlot
lastSlot TableViewCellSlot?

Returns

TableViewCellSlotRange

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

left TableViewCellSlotRange
right TableViewCellSlotRange

Returns

bool

operator !=(TableViewCellSlotRange?, TableViewCellSlotRange?)

public static bool operator !=(TableViewCellSlotRange? left, TableViewCellSlotRange? right)

Parameters

left TableViewCellSlotRange
right TableViewCellSlotRange

Returns

bool