menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CommandBarManager - API Reference

    Show / Hide Table of Contents

    Class CommandBarManager

    Inheritance
    System.Object
    CommandBarManager
    Implements
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Tools.XPMenus
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class CommandBarManager : IDisposable

    Constructors

    CommandBarManager(Form, BarManager)

    Declaration
    public CommandBarManager(Form form, BarManager manager)
    Parameters
    Type Name Description
    System.Windows.Forms.Form form
    BarManager manager

    Properties

    BarManager

    Declaration
    public BarManager BarManager { get; }
    Property Value
    Type Description
    BarManager

    DockBarContextMenu

    Declaration
    public PopupMenu DockBarContextMenu { get; }
    Property Value
    Type Description
    PopupMenu

    HintViaHotKeyPrefix

    Declaration
    public bool HintViaHotKeyPrefix { set; }
    Property Value
    Type Description
    System.Boolean

    Office2007Theme

    Gets or sets colorschemes for Office2007 visual style.

    Declaration
    public Office2007Theme Office2007Theme { get; set; }
    Property Value
    Type Description
    Office2007Theme

    Office2010Theme

    Gets or sets colorschemes for Office2010 visual style.

    Declaration
    public Office2010Theme Office2010Theme { get; set; }
    Property Value
    Type Description
    Office2010Theme

    SelectedCommandbar

    Declaration
    public CommandBarExt SelectedCommandbar { get; set; }
    Property Value
    Type Description
    CommandBarExt

    ShowMainMenusAutomatically

    Declaration
    public bool ShowMainMenusAutomatically { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    AttachBars(BarManager)

    Declaration
    public void AttachBars(BarManager manager)
    Parameters
    Type Name Description
    BarManager manager

    AttachMainMenuBar(Bar)

    Declaration
    public void AttachMainMenuBar(Bar mainMenuBar)
    Parameters
    Type Name Description
    Bar mainMenuBar

    BindBar(Bar)

    Declaration
    protected void BindBar(Bar bar)
    Parameters
    Type Name Description
    Bar bar

    CleanupOnFormClose()

    Declaration
    public void CleanupOnFormClose()

    CreateBarControl()

    Declaration
    protected virtual BarControlInternal CreateBarControl()
    Returns
    Type Description
    Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal

    CreateCommandBar()

    Declaration
    protected virtual CommandBarExt CreateCommandBar()
    Returns
    Type Description
    CommandBarExt

    CreateToolbarListPopup()

    Declaration
    protected virtual ToolbarListPopupMenu CreateToolbarListPopup()
    Returns
    Type Description
    ToolbarListPopupMenu

    Dispose()

    Declaration
    public virtual void Dispose()

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Finalize()

    Declaration
    protected void Finalize()

    GetAddOrRemoveButtonsParentItem(BarManager, CommandBarExt)

    Declaration
    protected virtual ParentBarItem GetAddOrRemoveButtonsParentItem(BarManager manager, CommandBarExt commandBar)
    Parameters
    Type Name Description
    BarManager manager
    CommandBarExt commandBar
    Returns
    Type Description
    ParentBarItem

    GetBarPositionInfo()

    Declaration
    public MemoryStream GetBarPositionInfo()
    Returns
    Type Description
    System.IO.MemoryStream

    GetButtonsList(CommandBarExt, BarManager)

    Declaration
    protected virtual ParentBarItem GetButtonsList(CommandBarExt commandBar, BarManager manager)
    Parameters
    Type Name Description
    CommandBarExt commandBar
    BarManager manager
    Returns
    Type Description
    ParentBarItem

    GetCommandBarController()

    Declaration
    public CommandBarController GetCommandBarController()
    Returns
    Type Description
    CommandBarController

    GetCommandBarFromBar(Bar)

    Declaration
    public CommandBarExt GetCommandBarFromBar(Bar bar)
    Parameters
    Type Name Description
    Bar bar
    Returns
    Type Description
    CommandBarExt

    GetUserVisibilityPrefOfBar(Bar)

    Declaration
    public bool GetUserVisibilityPrefOfBar(Bar bar)
    Parameters
    Type Name Description
    Bar bar
    Returns
    Type Description
    System.Boolean

    HideBars(BarManager, Boolean)

    Declaration
    public void HideBars(BarManager manager, bool hideImmediately)
    Parameters
    Type Name Description
    BarManager manager
    System.Boolean hideImmediately

    InitQuickCustomizePopup(CommandBarExt)

    Declaration
    protected virtual void InitQuickCustomizePopup(CommandBarExt commandBar)
    Parameters
    Type Name Description
    CommandBarExt commandBar

    IsBarVisible(Bar)

    Declaration
    public bool IsBarVisible(Bar bar)
    Parameters
    Type Name Description
    Bar bar
    Returns
    Type Description
    System.Boolean

    IsKeyboardNavigationOn()

    Declaration
    public bool IsKeyboardNavigationOn()
    Returns
    Type Description
    System.Boolean

    IsUserPrefAvailable(Bar)

    Declaration
    public bool IsUserPrefAvailable(Bar bar)
    Parameters
    Type Name Description
    Bar bar
    Returns
    Type Description
    System.Boolean

    LoadCommandBarState(AppStateSerializer)

    Declaration
    public void LoadCommandBarState(AppStateSerializer serializer)
    Parameters
    Type Name Description
    AppStateSerializer serializer

    LoadCommandBarState_Changed()

    Declaration
    public void LoadCommandBarState_Changed()

    LoadDesignerState(BarManager, Boolean)

    Declaration
    public void LoadDesignerState(BarManager manager, bool loadImmediately)
    Parameters
    Type Name Description
    BarManager manager
    System.Boolean loadImmediately

    LockBars()

    Declaration
    public void LockBars()

    PrepareToolbarListItem(ParentBarItem)

    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
    Type Name Description
    ParentBarItem parent

    The ParentBarItem that represents the dropdown menu.

    ProcessShortcut(Char)

    Declaration
    public bool ProcessShortcut(char c)
    Parameters
    Type Name Description
    System.Char c
    Returns
    Type Description
    System.Boolean

    RecalcLayout()

    Declaration
    public void RecalcLayout()

    RedrawBar(Bar)

    Declaration
    public void RedrawBar(Bar bar)
    Parameters
    Type Name Description
    Bar bar

    ReleaseBars(Bars)

    Declaration
    public void ReleaseBars(Bars bars)
    Parameters
    Type Name Description
    Bars bars

    RemoveBars(BarManager, Boolean)

    Declaration
    public void RemoveBars(BarManager manager, bool saveCommandBarState)
    Parameters
    Type Name Description
    BarManager manager
    System.Boolean saveCommandBarState

    SaveCommandBarState(AppStateSerializer)

    Declaration
    public void SaveCommandBarState(AppStateSerializer serializer)
    Parameters
    Type Name Description
    AppStateSerializer serializer

    SetBarVisibility(Bar, Boolean)

    Declaration
    public void SetBarVisibility(Bar bar, bool visible)
    Parameters
    Type Name Description
    Bar bar
    System.Boolean visible

    SetDesigntimeSelectedBar(Bar)

    Declaration
    public void SetDesigntimeSelectedBar(Bar bar)
    Parameters
    Type Name Description
    Bar bar

    ShowBars(BarManager)

    Declaration
    public void ShowBars(BarManager manager)
    Parameters
    Type Name Description
    BarManager manager

    ShowOrHideBars(BarManager, Boolean)

    Declaration
    protected virtual void ShowOrHideBars(BarManager manager, bool show)
    Parameters
    Type Name Description
    BarManager manager
    System.Boolean show

    StartKeyboardNavigationInMainMenu()

    Declaration
    public void StartKeyboardNavigationInMainMenu()

    StartListeningForMousePress(Control)

    Declaration
    protected virtual void StartListeningForMousePress(Control control)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control

    StopKeyboardNavigationInMainMenu()

    Declaration
    public void StopKeyboardNavigationInMainMenu()

    StopListeningForMousePress(Control)

    Declaration
    protected virtual void StopListeningForMousePress(Control control)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control

    UnbindBar(Bar)

    Declaration
    protected void UnbindBar(Bar bar)
    Parameters
    Type Name Description
    Bar bar

    UnLockBars()

    Declaration
    public void UnLockBars()

    UpdateDesignTimeVisibility(Boolean)

    Declaration
    public void UpdateDesignTimeVisibility(bool visible)
    Parameters
    Type Name Description
    System.Boolean visible

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved