Applies to: Nevron Diagram for .NET
How to disable customization features of the Diagram Command Bars Manager?
The following code will disable any customization feature of the NDiagramCommandBarsManager component:
Disable the Customize dialog of the manager:
[C#]
this
.nDiagramCommandBarsManager1.AllowCustomize =
false
;
[VB.NET]
Me
.nDiagramCommandBarsManager1.AllowCustomize =
False
Disable each toolbar’s Pendant command and permissions:
[C#]
foreach
(NDockingToolbar tb
in
this
.nDiagramCommandBarsManager1.Toolbars)
{
tb.AllowHide =
false
;
tb.HasPendantCommand =
false
;
}
[VB.NET]
For
Each
tb
As
NDockingToolbar
In
Me
.nDiagramCommandBarsManager1.Toolbars
tb.AllowHide =
False
tb.HasPendantCommand =
False
Next
Article ID: 13, Created On: 9/29/2010, Modified: 11/15/2010