Class CommandBarManager
Inheritance
System.Object
CommandBarManager
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.Tools.Windows.dll
public class CommandBarManager : IDisposable
Constructors
Declaration
public CommandBarManager(Form form, BarManager manager)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Form |
form |
|
BarManager |
manager |
|
Properties
Declaration
public BarManager BarManager { get; }
Property Value
DockBarContextMenu
Declaration
public PopupMenu DockBarContextMenu { get; }
Property Value
Declaration
public bool HintViaHotKeyPrefix { set; }
Property Value
Gets or sets colorschemes for Office2007 visual style.
Declaration
public Office2007Theme Office2007Theme { get; set; }
Property Value
Gets or sets colorschemes for Office2010 visual style.
Declaration
public Office2010Theme Office2010Theme { get; set; }
Property Value
Declaration
public CommandBarExt SelectedCommandbar { get; set; }
Property Value
ShowMainMenusAutomatically
Declaration
public bool ShowMainMenusAutomatically { get; set; }
Property Value
Methods
Declaration
public void AttachBars(BarManager manager)
Parameters
AttachMainMenuBar(Bar)
Declaration
public void AttachMainMenuBar(Bar mainMenuBar)
Parameters
Type |
Name |
Description |
Bar |
mainMenuBar |
|
Declaration
protected void BindBar(Bar bar)
Parameters
Type |
Name |
Description |
Bar |
bar |
|
Declaration
public void CleanupOnFormClose()
Declaration
protected virtual BarControlInternal CreateBarControl()
Returns
Type |
Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal |
Declaration
protected virtual CommandBarExt CreateCommandBar()
Returns
Declaration
protected virtual ToolbarListPopupMenu CreateToolbarListPopup()
Returns
Declaration
public virtual void Dispose()
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Declaration
protected void Finalize()
Declaration
protected virtual ParentBarItem GetAddOrRemoveButtonsParentItem(BarManager manager, CommandBarExt commandBar)
Parameters
Returns
Declaration
public MemoryStream GetBarPositionInfo()
Returns
Type |
System.IO.MemoryStream |
Declaration
protected virtual ParentBarItem GetButtonsList(CommandBarExt commandBar, BarManager manager)
Parameters
Returns
Declaration
public CommandBarController GetCommandBarController()
Returns
Declaration
public CommandBarExt GetCommandBarFromBar(Bar bar)
Parameters
Type |
Name |
Description |
Bar |
bar |
|
Returns
Declaration
public bool GetUserVisibilityPrefOfBar(Bar bar)
Parameters
Type |
Name |
Description |
Bar |
bar |
|
Returns
Declaration
public void HideBars(BarManager manager, bool hideImmediately)
Parameters
Type |
Name |
Description |
BarManager |
manager |
|
System.Boolean |
hideImmediately |
|
Declaration
protected virtual void InitQuickCustomizePopup(CommandBarExt commandBar)
Parameters
Declaration
public bool IsBarVisible(Bar bar)
Parameters
Type |
Name |
Description |
Bar |
bar |
|
Returns
Declaration
public bool IsKeyboardNavigationOn()
Returns
Declaration
public bool IsUserPrefAvailable(Bar bar)
Parameters
Type |
Name |
Description |
Bar |
bar |
|
Returns
Declaration
public void LoadCommandBarState(AppStateSerializer serializer)
Parameters
Declaration
public void LoadCommandBarState_Changed()
Declaration
public void LoadDesignerState(BarManager manager, bool loadImmediately)
Parameters
Type |
Name |
Description |
BarManager |
manager |
|
System.Boolean |
loadImmediately |
|
Declaration
This method will be called to fill the ParentBarItem that represents the menu
that drops down when right-clicking in the toolbar area.
Declaration
public virtual void PrepareToolbarListItem(ParentBarItem parent)
Parameters
Declaration
public bool ProcessShortcut(char c)
Parameters
Type |
Name |
Description |
System.Char |
c |
|
Returns
Declaration
public void RecalcLayout()
Declaration
public void RedrawBar(Bar bar)
Parameters
Type |
Name |
Description |
Bar |
bar |
|
Declaration
public void ReleaseBars(Bars bars)
Parameters
Type |
Name |
Description |
Bars |
bars |
|
Declaration
public void RemoveBars(BarManager manager, bool saveCommandBarState)
Parameters
Type |
Name |
Description |
BarManager |
manager |
|
System.Boolean |
saveCommandBarState |
|
Declaration
public void SaveCommandBarState(AppStateSerializer serializer)
Parameters
Declaration
public void SetBarVisibility(Bar bar, bool visible)
Parameters
Type |
Name |
Description |
Bar |
bar |
|
System.Boolean |
visible |
|
Declaration
public void SetDesigntimeSelectedBar(Bar bar)
Parameters
Type |
Name |
Description |
Bar |
bar |
|
Declaration
public void ShowBars(BarManager manager)
Parameters
Declaration
protected virtual void ShowOrHideBars(BarManager manager, bool show)
Parameters
Type |
Name |
Description |
BarManager |
manager |
|
System.Boolean |
show |
|
StartKeyboardNavigationInMainMenu()
Declaration
public void StartKeyboardNavigationInMainMenu()
Declaration
protected virtual void StartListeningForMousePress(Control control)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
control |
|
StopKeyboardNavigationInMainMenu()
Declaration
public void StopKeyboardNavigationInMainMenu()
Declaration
protected virtual void StopListeningForMousePress(Control control)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
control |
|
Declaration
protected void UnbindBar(Bar bar)
Parameters
Type |
Name |
Description |
Bar |
bar |
|
Declaration
Declaration
public void UpdateDesignTimeVisibility(bool visible)
Parameters
Type |
Name |
Description |
System.Boolean |
visible |
|
Implements
System.IDisposable