Char..::..IsLetter Method (String, Int32)
Indicates whether the character at the specified position in a specified string is categorized as a Unicode letter.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static bool IsLetter( string s, int index )
<TemplateAttribute> _ Public Shared Function IsLetter ( _ s As String, _ index As Integer _ ) As Boolean
[TemplateAttribute] public: static bool^ IsLetter( String^ s, int^ index )
Parameters
- s
- Type: System..::..String
A string.
- index
- Type: System..::..Int32
The position of the character to evaluate in s.
Return Value
true if the character at position index in s is a letter; otherwise, false.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | s is null. |
System..::..ArgumentOutOfRangeException | index is less than zero or greater than the last position in s. |