Char.IsUpper Char.IsUpper Char.IsUpper Char.IsUpper Method

定義

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

多載

IsUpper(Char) IsUpper(Char) IsUpper(Char) IsUpper(Char)

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

IsUpper(String, Int32) IsUpper(String, Int32) IsUpper(String, Int32) IsUpper(String, Int32)

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

IsUpper(Char) IsUpper(Char) IsUpper(Char) IsUpper(Char)

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

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

參數

c
Char Char Char Char

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

傳回

true 是大寫字母時為 c,否則為 falsetrue if c is an uppercase letter; otherwise, false.

備註

有效的大寫字母是中UnicodeCategory下列類別目錄的成員:。 UppercaseLetterValid uppercase letters are members of the following category in UnicodeCategory: UppercaseLetter.

另請參閱

IsUpper(String, Int32) IsUpper(String, Int32) IsUpper(String, Int32) IsUpper(String, Int32)

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

public:
 static bool IsUpper(System::String ^ s, int index);
public static bool IsUpper (string s, int index);
static member IsUpper : string * int -> bool
Public Shared Function IsUpper (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 an uppercase letter; otherwise, false.

例外狀況

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

備註

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

有效的大寫字母是中UnicodeCategory下列類別目錄的成員:。 UppercaseLetterValid uppercase letters are members of the following category in UnicodeCategory: UppercaseLetter.

另請參閱

適用於