Click or drag to resize
StringIndexOf Method (Char)
Reports the zero-based index of the first occurrence of the specified Unicode character in this string.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public int IndexOf(
	char value
)

Parameters

value
Type: SystemChar
A Unicode character to seek.

Return Value

Type: Int32
The zero-based index position of value if that character is found, or -1 if it is not.
See Also