Rune.GetRuneAt(String, Int32) Method

Definition

Gets the Rune that begins at a specified position in a string.

C#
public static System.Text.Rune GetRuneAt(string input, int index);

Parameters

input
String

The string from which to create the rune.

index
Int32

The starting position in input at which to create the rune.

Returns

The rune obtained from input at the specified index.

Exceptions

input is null.

index does not reference the start of a valid scalar value in input.

index is outside the range of input.

Remarks

Throws an exception if input is null, index is out of range, or index does not reference the start of a valid scalar value within input.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10