Skybound Rebar

ToggleMenuEventArgs.GetBand Method 

Returns the RebarBand that corresponds to a specified menu item.

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

Parameters

item
The menu item to which the rebar band corresponds.

Return Value

The RebarBand that corresponds to a specified menu item, or a null reference (Nothing in Visual Basic) if the menu item does not correspond to a specific band.

Remarks

Before the ToggleMenuPopup event is raised, a menu is created containing an item for each band in the rebar. Clicking on these buttons will toggle whether the band is visible. Use this method to determine which band corresponds to a specific item in the menu.

See Also

ToggleMenuEventArgs Class | Skybound.Rebar Namespace