A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.char.isletter below:

Char.IsLetter Method (System) | Microsoft Learn

Char.IsLetter Method Definition

Indicates whether a Unicode character is categorized as a Unicode letter.

Overloads IsLetter(Char)

Indicates whether the specified Unicode character is categorized as a Unicode letter.

IsLetter(String, Int32)

Indicates whether the character at the specified position in a specified string is categorized as a Unicode letter.

Examples

The following code example demonstrates IsLetter.

using System;

public class IsLetterSample {
    public static void Main() {
        char ch = '8';

        Console.WriteLine(Char.IsLetter(ch));					// False
        Console.WriteLine(Char.IsLetter("sample string", 7));	// True
    }
}
open System

let ch = '8'

printfn $"{Char.IsLetter ch}"                       // False
printfn $"""{Char.IsLetter("sample string", 7)}"""  // True
Module IsLetterSample

    Sub Main()

        Dim ch8 As Char
        ch8 = "8"c

        Console.WriteLine(Char.IsLetter(ch8))                   ' Output: "False"
        Console.WriteLine(Char.IsLetter("sample string", 5))    ' Output: "True"

    End Sub

End Module

This method determines whether a Char is a member of any category of Unicode letter. Unicode letters include the following:

IsLetter(Char)
Source:
Char.cs
Source:
Char.cs
Source:
Char.cs
Source:
Char.cs

Indicates whether the specified Unicode character is categorized as a Unicode letter.

public:
 static bool IsLetter(char c);
public static bool IsLetter(char c);
static member IsLetter : char -> bool
Public Shared Function IsLetter (c As Char) As Boolean
Parameters
c
Char

The Unicode character to evaluate.

Returns

true if c is a letter; otherwise, false.

Remarks

This method determines whether a Char is a member of any category of Unicode letter. Unicode letters include the following:

See also IsLetter(String, Int32)
Source:
Char.cs
Source:
Char.cs
Source:
Char.cs
Source:
Char.cs

Indicates whether the character at the specified position in a specified string is categorized as a Unicode letter.

public:
 static bool IsLetter(System::String ^ s, int index);
public static bool IsLetter(string s, int index);
static member IsLetter : string * int -> bool
Public Shared Function IsLetter (s As String, index As Integer) As Boolean
Parameters
index
Int32

The position of the character to evaluate in s.

Returns

true if the character at position index in s is a letter; otherwise, false.

Exceptions

index is less than zero or greater than the last position in s.

Remarks

Character positions in a string are indexed starting from zero.

This method determines whether the character at a specified index position in a string is a member of any category of Unicode letter. Unicode letters include the following:

See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4