Export (0) Print
Expand All

Char.IsLower Method

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

Overload List

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

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function IsLower(Char) As Boolean
[C#] public static bool IsLower(char);
[C++] public: static bool IsLower(__wchar_t);
[JScript] public static function IsLower(Char) : Boolean;

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

[Visual Basic] Overloads Public Shared Function IsLower(String, Integer) As Boolean
[C#] public static bool IsLower(string, int);
[C++] public: static bool IsLower(String*, int);
[JScript] public static function IsLower(String, int) : Boolean;

Example

[Visual Basic, C#, C++] The following sample demonstrates IsLower.

[Visual Basic, C#, C++] Note   This example shows how to use one of the overloaded versions of IsLower. For other examples that might be available, see the individual overload topics.
[Visual Basic] 
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

[C#] 
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"
    }
}

[C++] 
#using <mscorlib.dll>
using namespace System;

int main() {
   char ch = 'a';

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

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

Char Structure | Char Members | System Namespace

Show:
© 2014 Microsoft