ReadOnlySpan2D<T>.Item[] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 readonly 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
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 readonly 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
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.ReadOnlySpan2D<T> this[Range rows, Range columns] { get; }
member this.Item(Range * Range) : Microsoft.Toolkit.HighPerformance.ReadOnlySpan2D<'T>
Default Public ReadOnly Property Item(rows As Range, columns As Range) As ReadOnlySpan2D(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 ReadOnlySpan2D<T> instance representing a slice of the current one.
Exceptions
Thrown when either rows
or columns
are invalid.