Char.IsLower Method

Definition

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

Overloads

IsLower(Char)

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

IsLower(String, Int32)

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

IsLower(Char)

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

public static bool IsLower (char c);
Parameters
c
Char

The Unicode character to evaluate.

Returns

true if c is a lowercase letter; otherwise, false.

Examples

The following code example demonstrates IsLower.

using namespace System;
int main()
{
   char ch = 'a';
   Console::WriteLine( Char::IsLower( ch ) ); // Output: "True"
   Console::WriteLine( Char::IsLower(  "upperCase", 5 ) ); // Output: "False"
}

using System;

public class IsLowerSample {
	public static void Main() {
		char ch = 'a';

		Console.WriteLine(Char.IsLower(ch));				// Output: "True"
		Console.WriteLine(Char.IsLower("upperCase", 5));	// Output: "False"
	}
}
Imports System

Module IsLowerSample

    Sub Main()

        Dim ch As Char
        ch = "a"c

        Console.WriteLine(Char.IsLower(ch))                 ' Output: "True"
        Console.WriteLine(Char.IsLower("upperCase", 5))     ' Output: "False"

    End Sub

End Module

Remarks

Valid lowercase letters are members of the following category in UnicodeCategory: LowercaseLetter.

See Also

IsLower(String, Int32)

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

public static bool IsLower (string s, int index);
Parameters
s
String

A string.

index
Int32

The position of the character to evaluate in s.

Returns

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

Exceptions

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

Examples

The following code example demonstrates IsLower.

using namespace System;
int main()
{
   char ch = 'a';
   Console::WriteLine( Char::IsLower( ch ) ); // Output: "True"
   Console::WriteLine( Char::IsLower(  "upperCase", 5 ) ); // Output: "False"
}

using System;

public class IsLowerSample {
	public static void Main() {
		char ch = 'a';

		Console.WriteLine(Char.IsLower(ch));				// Output: "True"
		Console.WriteLine(Char.IsLower("upperCase", 5));	// Output: "False"
	}
}
Imports System

Module IsLowerSample

    Sub Main()

        Dim ch As Char
        ch = "a"c

        Console.WriteLine(Char.IsLower(ch))                 ' Output: "True"
        Console.WriteLine(Char.IsLower("upperCase", 5))     ' Output: "False"

    End Sub

End Module

Remarks

Character positions in a string are indexed starting from zero.

Valid lowercase letters are members of the following category in UnicodeCategory: LowercaseLetter.

See Also

Applies to