Skybound Rebar

ChevronClickEventArgs.GetButton Method 

Returns the RebarButton that corresponds to a specified menu item.

[Visual Basic]
Public Function GetButton( _
   ByVal item As MenuItem _
) As RebarButton
[C#]
public RebarButton GetButton(
   MenuItem item
);

Parameters

item
The menu item to which the rebar button corresponds.

Return Value

The RebarButton that corresponds to a specified menu item, or a null reference (Nothing in Visual Basic) if it is not a menu item in the chevron menu.

Remarks

Before the ChevronClick event is raised, a menu is created from the obstructed buttons on the band. Use this method to determine which button corresponds to a specific item in the menu.

See Also

ChevronClickEventArgs Class | Skybound.Rebar Namespace