次の方法で共有


Char.IsUpper メソッド (String, Int32)

指定した文字列の指定位置にある文字が大文字かどうかを示します。

Overloads Public Shared Function IsUpper( _
   ByVal s As String, _   ByVal index As Integer _) As Boolean
[C#]
public static bool IsUpper(strings,intindex);
[C++]
public: static bool IsUpper(String* s,intindex);
[JScript]
public static function IsUpper(
   s : String,index : int) : Boolean;

パラメータ

  • s
    文字列。
  • index
    s 内の文字位置。

戻り値

sindex の位置にある文字が大文字の場合は true 。それ以外の場合は false

例外

例外の種類 条件
ArgumentNullException s が null 参照 (Visual Basic では Nothing) です。
ArgumentOutOfRangeException index が 0 未満か、 s の最後の位置より大きい値です。

解説

文字列の文字位置には、0 から始まるインデックスが付けられます。

有効な大文字は、 UnicodeCategory のカテゴリ UppercaseLetter のメンバです。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, Common Language Infrastructure (CLI) Standard

参照

Char 構造体 | Char メンバ | System 名前空間 | Char.IsUpper オーバーロードの一覧 | Boolean | String