次の方法で共有


Char.ToUpper メソッド (Char)

Unicode 文字の値をそれと等価な大文字に変換します。

Overloads Public Shared Function ToUpper( _
   ByVal c As Char _) As Char
[C#]
public static char ToUpper(charc);
[C++]
public: static __wchar_t ToUpper(__wchar_tc);
[JScript]
public static function ToUpper(
   c : Char) : Char;

パラメータ

  • c
    Unicode 文字。

戻り値

c と等価の大文字。

または

c が大文字であるか、またはアルファベット文字でない場合には、 c の未変更の値。

解説

大文字と小文字の規則は現在のカルチャから取得されます。

文字列を大文字に変換する場合には String.ToUpper を使用してください。

必要条件

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

参照

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