CheckBox.ProcessMnemonic メソッドとは何? わかりやすく解説 Weblio辞書

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

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

CheckBox.ProcessMnemonic メソッド

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

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

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

returnValue = Me.ProcessMnemonic(charCode)
protected internal override bool ProcessMnemonic
 (
    char charCode
)
protected public:
virtual bool ProcessMnemonic (
    wchar_t charCode
) override
protected boolean ProcessMnemonic (
    char charCode
)
protected internal override 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;
   }

};


プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS