Char.IsLower Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether a Unicode character is categorized as a lowercase letter.
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. |
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"
}
}
open System
let ch = 'a'
printfn $"{Char.IsLower ch}" // Output: "True"
printfn $"""{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
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
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
Parameters
- c
- Char
The Unicode character to evaluate.
Returns
true
if c
is a lowercase letter; otherwise, false
.
Remarks
Valid lowercase letters are members of the following category in UnicodeCategory: LowercaseLetter
.
See also
Applies to
.NET 9 und andere Versionen
Produkt | Versionen |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
UWP | 10.0 |
- 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 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
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
s
is null
.
index
is less than zero or greater than the last position in s
.
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
.NET 9 und andere Versionen
Produkt | Versionen |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
UWP | 10.0 |
Feedback zu .NET
.NET ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: