Char.IsLower Char.IsLower Char.IsLower Char.IsLower Method

定義

指示 Unicode 字元是否分類為小寫字母。Indicates whether a Unicode character is categorized as a lowercase letter.

多載

IsLower(Char) IsLower(Char) IsLower(Char) IsLower(Char)

指示指定的 Unicode 字元是否分類為小寫字母。Indicates whether the specified Unicode character is categorized as a lowercase letter.

IsLower(String, Int32) IsLower(String, Int32) IsLower(String, Int32) IsLower(String, Int32)

指示指定的字串中指定位置處的字元是否分類為小寫字母。Indicates whether the character at the specified position in a specified string is categorized as a lowercase letter.

IsLower(Char) IsLower(Char) IsLower(Char) IsLower(Char)

指示指定的 Unicode 字元是否分類為小寫字母。Indicates whether the specified Unicode character is categorized as a lowercase letter.

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

參數

c
Char Char Char Char

要評估的 Unicode 字元。The Unicode character to evaluate.

傳回

true 是小寫字母時為 c,否則為 falsetrue if c is a lowercase letter; otherwise, false.

範例

下列程式碼範例將IsLower示範。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"
    }
}
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

備註

有效的小寫字母是中UnicodeCategory下列類別目錄的成員:。 LowercaseLetterValid lowercase letters are members of the following category in UnicodeCategory: LowercaseLetter.

另請參閱

IsLower(String, Int32) IsLower(String, Int32) IsLower(String, Int32) 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(System::String ^ s, int index);
public static bool IsLower (string s, int index);
static member IsLower : string * int -> bool
Public Shared Function IsLower (s As String, index As Integer) As Boolean

參數

s
String String String String

字串。A string.

index
Int32 Int32 Int32 Int32

要評估的字元在 s 中的位置。The position of the character to evaluate in s.

傳回

true 中位在 index 的字元是小寫字母時為 s,否則為 falsetrue if the character at position index in s is a lowercase letter; otherwise, false.

例外狀況

index 小於零或大於 s 中的最後一個位置。index is less than zero or greater than the last position in s.

範例

下列程式碼範例將IsLower示範。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"
    }
}
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

備註

字串中的字元位置會從零開始編制索引。Character positions in a string are indexed starting from zero.

有效的小寫字母是中UnicodeCategory下列類別目錄的成員:。 LowercaseLetterValid lowercase letters are members of the following category in UnicodeCategory: LowercaseLetter.

另請參閱

適用於