Skybound Rebar

RebarBand.CanToggle Property

Gets or sets whether whether the band is displayed in the toggle menu, allowing the user to show and hide the band at runtime.

[Visual Basic]
Public Property CanToggle As Boolean
[C#]
public bool CanToggle {get; set;}

Property Value

true if the band is displayed in the toggle menu; otherwise, false. The default is false.

Remarks

When a Rebar control is right-clicked at runtime, a context menu is displayed called a "toggle menu". This menu contains an item for each band whose CanToggle property is true. Clicking on one of these menu items toggles the value of the Visible property, causing the band to be either hidden or displayed.

See Also

RebarBand Class | Skybound.Rebar Namespace