CharIsControl Method (String, Int32) |
Indicates whether the character at the specified position in a specified string is categorized as a control character.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static bool IsControl(
string s,
int index
)
Parameters
- s
- Type: SystemString
A string. - index
- Type: SystemInt32
The position of the character to evaluate in s.
Return Value
Type:
Booleantrue if the character at position
index in
s is a control character; otherwise, false.
Exceptions Exception | Condition |
---|
ArgumentNullException | s is null. |
ArgumentOutOfRangeException | index is less than zero or greater than the last position in s. |
See Also