asp.net.ph

String.Chars Property

System Namespace   String Class


Returns the character at a specified character position in the given String.

[ VB ]
<Serializable>
Public Default ReadOnly Property Chars ( _
   ByVal index As Integer _
) As Char

[ C# ]
[ Serializable ]
public char this [
   int index
 ] { get; }


[ C++ ]
[ Serializable ]
public: __property __wchar_t get_Chars (
   int index
);

[ JScript ]
returnValue = StringObject.Chars ( index );
-or-
returnValue = StringObject ( index );

Parameters

index
A character position in the given String.

Property Value

A Unicode character.

Exceptions


Exception Type Condition
IndexOutOfRangeException index is greater than or equal to the length of this object or less than zero.

Remarks

index is zero-based.

See Also

String Members   Char   GetEnumerator   Int32 Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph