Skip to main content

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.

public class RibbonBarItemEventArgs : EventArgs

Constructors​

Instance member RibbonBarItemEventArgs(item)​

Initializes a new instance of RibbonBarItemEventArgs using the specified parameters.

NameTypeDescription
itemRibbonBarItemThe RibbonBarItem that originated the event.

Throws:

Properties​

Instance member 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​

NameDescription
RibbonBarItemEventHandlerRepresents a method that will handle events related to RibbonBarItem components.