'宣言 Public Event AfterRibbonTabSelected As RibbonTabEventHandler
public event RibbonTabEventHandler AfterRibbonTabSelected
イベント ハンドラが、このイベントに関連するデータを含む、RibbonTabEventArgs 型の引数を受け取りました。次の RibbonTabEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
Tab | イベントに関連付けられたタブを返します。 |
Imports Infragistics.Win Imports Infragistics.Win.UltraWinToolBars Private Sub UltraToolbarsManager1_AfterRibbonTabSelected(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.RibbonTabEventArgs) Handles UltraToolbarsManager1.AfterRibbonTabSelected Dim messageText As String = String.Format("The '{0}' ribbon tab has just been selected.", e.Tab.Key) Debug.WriteLine(messageText) End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinToolBars; using System.Diagnostics; private void ultraToolbarsManager1_AfterRibbonTabSelected(object sender, RibbonTabEventArgs e) { string messageText; if (e.Tab != null) messageText = string.Format("The '{0}' ribbon tab has just been selected.", e.Tab.Key); else messageText = "No ribbon tab is selected."; Debug.WriteLine(messageText); }