Control.ProcessMnemonic メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Control.ProcessMnemonic メソッドの意味・解説 

Control.ProcessMnemonic メソッド

ニーモニック文字処理します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Protected Friend Overridable
 Function ProcessMnemonic ( _
    charCode As Char _
) As Boolean
Dim charCode As Char
Dim returnValue As Boolean

returnValue = Me.ProcessMnemonic(charCode)
protected internal virtual bool ProcessMnemonic
 (
    char charCode
)
protected public:
virtual bool ProcessMnemonic (
    wchar_t charCode
)
protected boolean ProcessMnemonic (
    char charCode
)
protected internal function
 ProcessMnemonic (
    charCode : char
) : boolean

パラメータ

charCode

処理対象文字

戻り値
文字コントロールによってニーモニックとして処理され場合trueそれ以外場合false

解説解説
使用例使用例

ProcessMnemonic メソッドオーバーライドするボタン クラス拡張しカスタム動作を示す方法次のコード例示しますまた、この例では、CanSelect プロパティIsMnemonic プロパティ使用してます。この例を実行するには、次のコードを、同じファイル内のフォーム クラスの後に貼り付けます。そして、MnemonicButton 型のボタンフォーム追加します

// This button is a simple extension of the button class that overrides
// the ProcessMnemonic method.  If the mnemonic is correctly entered,
  
// the message box will appear and the click event will be raised. 
 
// This method makes sure the control is selectable and the 
// mnemonic is correct before displaying the message box
// and triggering the click event.
public ref class MyMnemonicButton: public
 Button
{
protected:
   bool ProcessMnemonic( char inputChar )
   {
      if ( CanSelect && IsMnemonic( inputChar, this->Text
 ) )
      {
         MessageBox::Show( "You've raised the click event "
         "using the mnemonic." );
         this->PerformClick();
         return true;
      }

      return false;
   }

};


.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からControl.ProcessMnemonic メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からControl.ProcessMnemonic メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からControl.ProcessMnemonic メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

Control.ProcessMnemonic メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Control.ProcessMnemonic メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS