RibbonBarItemEventArgs
Namespace: Wisej.Web.Ext.RibbonBar
Assembly: Wisej.Web.Ext.RibbonBar (4.1.0.0)
Contains the data for the events in a RibbonBar control fired by its RibbonBarItem components.
- C#
- VB.NET
public class RibbonBarItemEventArgs : EventArgs
Public Class RibbonBarItemEventArgs
Inherits EventArgs
Constructors
RibbonBarItemEventArgs(item)
Initializes a new instance of RibbonBarItemEventArgs using the specified parameters.
| Name | Type | Description |
|---|---|---|
| item | RibbonBarItem | The RibbonBarItem that originated the event. |
Throws:
- ArgumentNullException item is null.
Properties
Item
RibbonBarItem: Returns the RibbonBarItem that originated the event.
Value: A reference to the RibbonBarItem that originated this event.
Example:
Handling the clicks of different item types in the ItemClick event:
private void ribbonBar1_ItemClick(object sender, RibbonBarItemEventArgs e)
{
if (e.Item is RibbonBarItemCheckBox checkBox)
SetOption(checkBox.Name, checkBox.Checked);
else
ExecuteCommand(e.Item.Name);
}
Used By
| Name | Description |
|---|---|
| RibbonBarItemEventHandler | Represents a method that will handle events related to RibbonBarItem components. |