Edit

Share via


Span2D<T>.Item[] Property

Definition

Overloads

Item[Index, Index]

Gets the element at the specified zero-based indices.

Item[Int32, Int32]

Gets the element at the specified zero-based indices.

Item[Range, Range]

Slices the current instance with the specified parameters.

Item[Index, Index]

Gets the element at the specified zero-based indices.

public ref T this[Index row, Index column] { get; }
member this.Item(Index * Index) : 'T
Default Public ReadOnly Property Item(row As Index, column As Index) As T

Parameters

row
Index

The target row to get the element from.

column
Index

The target column to get the element from.

Property Value

T

A reference to the element at the specified indices.

Exceptions

Thrown when either row or column are invalid.

Applies to

Item[Int32, Int32]

Gets the element at the specified zero-based indices.

public ref T this[int row, int column] { get; }
member this.Item(int * int) : 'T
Default Public ReadOnly Property Item(row As Integer, column As Integer) As T

Parameters

row
Int32

The target row to get the element from.

column
Int32

The target column to get the element from.

Property Value

T

A reference to the element at the specified indices.

Exceptions

Thrown when either row or column are invalid.

Applies to

Item[Range, Range]

Slices the current instance with the specified parameters.

public Microsoft.Toolkit.HighPerformance.Span2D<T> this[Range rows, Range columns] { get; }
member this.Item(Range * Range) : Microsoft.Toolkit.HighPerformance.Span2D<'T>
Default Public ReadOnly Property Item(rows As Range, columns As Range) As Span2D(Of T)

Parameters

rows
Range

The target range of rows to select.

columns
Range

The target range of columns to select.

Property Value

A new Span2D<T> instance representing a slice of the current one.

Exceptions

Thrown when either rows or columns are invalid.

Applies to