ISelectionService.SelectionChanged イベントとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ISelectionService.SelectionChanged イベントの意味・解説 

ISelectionService.SelectionChanged イベント

現在選択されている対象変更されたときに発生します

名前空間: System.ComponentModel.Design
アセンブリ: System (system.dll 内)
構文構文

Event SelectionChanged As EventHandler
Dim instance As ISelectionService
Dim handler As EventHandler

AddHandler instance.SelectionChanged, handler
event EventHandler SelectionChanged
/** @event */
void add_SelectionChanged (EventHandler value)

/** @event */
void remove_SelectionChanged (EventHandler value)
JScript では、イベント使用できますが、新規に宣言することはできません。
解説解説
使用例使用例

SelectionChanged イベント使用する方法次の例に示します

               ' Add SelectionChanged event handler to event
               AddHandler m_selectionService.SelectionChanged,
 AddressOf OnSelectionChanged
<br /><span space="preserve">...</span><br
 />      ' This is the OnSelectionChanged handler method.  This
 method calls
      '  OnUserChange to display a message that indicates the name of
 the
      '  handler that made the call and the type of the event argument.
 
      Private Sub OnSelectionChanged(ByVal
 sender As Object, ByVal
 args As EventArgs)
         OnUserChange("OnSelectionChanged", args.ToString())
      End Sub 'OnSelectionChanged

                    // Add SelectionChanged event handler to event
                    m_selectionService.SelectionChanged += new
 EventHandler(OnSelectionChanged);
<br /><span space="preserve">...</span><br /> 
       /* This is the OnSelectionChanged handler method.  This method calls
            OnUserChange to display a message that indicates the name of the
            handler that made the call and the type of the event argument. */
        private void OnSelectionChanged(object
 sender, EventArgs args) 
        {
            OnUserChange("OnSelectionChanged", args.ToString());
        }
            // Add SelectionChanged event handler to event
            m_selectionService->SelectionChanged += gcnew EventHandler( this,
 &ComponentClass::OnSelectionChanged );
<br /><span space="preserve">...</span><br /> 
  /* This is the OnSelectionChanged handler method.  This method calls
       OnUserChange to display a message that indicates the name of the
       handler that made the call and the type of the event argument. */
   void OnSelectionChanged( Object^ /*sender*/, EventArgs^ args
 )
   {
      OnUserChange( "OnSelectionChanged", args->ToString() );
   }
            // Add SelectionChanged event handler to event
            mSelectionService.add_SelectionChanged(
                new EventHandler(OnSelectionChanged));
<br /><span space="preserve">...</span><br /> 
   /* This is the OnSelectionChanged handler method.  This method calls
            OnUserChange to display a message that indicates the name of the
            handler that made the call and the type of the event argument. 
     */
    private void OnSelectionChanged(Object
 sender, EventArgs args)
    {
        OnUserChange("OnSelectionChanged", args.ToString());
    } //OnSelectionChanged
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ISelectionService インターフェイス
ISelectionService メンバ
System.ComponentModel.Design 名前空間
SelectionChanging
EventHandler


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

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

辞書ショートカット

すべての辞書の索引

「ISelectionService.SelectionChanged イベント」の関連用語

ISelectionService.SelectionChanged イベントのお隣キーワード
検索ランキング

   

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



ISelectionService.SelectionChanged イベントのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS