Partager via


String.Chars Property

Gets the character at a specified index number (character position) in the current String object.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public char this [
         int index
] { get; }

Parameters

  • index
    The specified character position in the current String object.

Property Value

A Unicode character.

Remarks

The value of the index parameter is zero-based.

This property returns the character at the position specified by the index parameter. Note, however, that a particular Unicode character might be represented by more than one standard character.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

String Class
String Members
System Namespace