コード例 #1
0
        /// <summary>
        /// Populating ribbon items to the ribbon bar.
        /// </summary>
        /// <param name="customRibbonTab">Ribbontab.</param>
        private void PopulateDesignBar(MenuMergingRibbonTab customRibbonTab)
        {
            MenuMergingRibbonBar firstBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Table Style Options"
            };

            PopulateDesignItems(firstBar);
            customRibbonTab.CustomFirstChildRibbonBars.Add(firstBar);
        }
コード例 #2
0
        /// <summary>
        /// Adding child ribbon bars to the ribbon tab(Home).
        /// </summary>
        /// <param name="Tab">Specifies the ribbon bar</param>
        void PopulateRibbonHomeBars(MenuMergingRibbonTab Tab)
        {
            MenuMergingRibbonBar firstBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Clipboard"
            };
            MenuMergingRibbonBar secondBar = new MenuMergingRibbonBar()
            {
                BarHeader = "MDI Styles"
            };

            PopulateRibbonNewItems(firstBar);
            PopulateMDIItems(secondBar);
            Tab.ModelTabRibbonBar.Add(firstBar);
            Tab.ModelTabRibbonBar.Add(secondBar);
        }
コード例 #3
0
        /// <summary>
        /// Adding ribbon tabs to the main ribbon window.
        /// </summary>
        void PopulateRibbonTabs()
        {
            MenuMergingRibbonTab firstTab = new MenuMergingRibbonTab()
            {
                TabHeader = "Home"
            };
            MenuMergingRibbonTab secondTab = new MenuMergingRibbonTab()
            {
                TabHeader = "Insert"
            };

            PopulateRibbonHomeBars(firstTab);
            PopulateRibbonInsertBars(secondTab);
            ModelRibbonTab.Add(firstTab);
            ModelRibbonTab.Add(secondTab);
        }
コード例 #4
0
        /// <summary>
        /// Allocating tabs to the child2ribbon ber.
        /// </summary>
        private void PopulateSecondChildRibbonTabs()
        {
            MenuMergingRibbonTab firstTab = new MenuMergingRibbonTab()
            {
                TabHeader = "Mailings", MergeOrder = 1
            };
            MenuMergingRibbonTab secondTab = new MenuMergingRibbonTab()
            {
                TabHeader = "Print"
            };

            PopulateMailingsBars(firstTab);
            PopulatePrintBars(secondTab);
            SecondChildRibbonTab.Add(firstTab);
            SecondChildRibbonTab.Add(secondTab);
        }
コード例 #5
0
        /// <summary>
        /// Populating child ribbon bar inside the parent bar.
        /// </summary>
        /// <param name="customRibbonTab">Child ribbon tab.</param>
        private void PopulateChildHomeBar(MenuMergingRibbonTab customRibbonTab)
        {
            MenuMergingRibbonBar firstBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Editing"
            };
            MenuMergingRibbonBar secondBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Paragraph"
            };

            PopulateEditingItems(firstBar);
            PopulateCreateBarItems(secondBar);
            customRibbonTab.CustomFirstChildRibbonBars.Add(firstBar);
            customRibbonTab.CustomFirstChildRibbonBars.Add(secondBar);
        }
コード例 #6
0
        /// <summary>
        /// Adding ribbon tabs to the control.
        /// </summary>
        private void PopulateFirstChildRibbonTabs()
        {
            MenuMergingRibbonTab firstTab = new MenuMergingRibbonTab()
            {
                TabHeader = "Home"
            };
            MenuMergingRibbonTab secondTab = new MenuMergingRibbonTab()
            {
                TabHeader = "Design"
            };

            PopulateChildHomeBar(firstTab);
            PopulateDesignBar(secondTab);
            FirstChildRibbonTab.Add(firstTab);
            FirstChildRibbonTab.Add(secondTab);
        }
コード例 #7
0
        /// <summary>
        /// Allocating ribbon bars to secong ribbon tab inside the child2ribbon tabs.
        /// </summary>
        /// <param name="Tab">Specifies the ribbon tab.</param>
        private void PopulateMailingsBars(MenuMergingRibbonTab Tab)
        {
            MenuMergingRibbonBar firstBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Link"
            };

            PopulateCreateItems(firstBar);
            MenuMergingRibbonBar secondBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Mail"
            };

            PopuplateRibbonMailItems(secondBar);
            Tab.CustomSecondChildRibbonBars.Add(firstBar);
            Tab.CustomSecondChildRibbonBars.Add(secondBar);
        }
コード例 #8
0
        /// <summary>
        /// Allocating ribbon bars inside the secondChildRibbon ribbon  tab.
        /// </summary>
        /// <param name="Tab">Specifies the ribbon tab.</param>
        private void PopulatePrintBars(MenuMergingRibbonTab Tab)
        {
            MenuMergingRibbonBar firstBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Print"
            };

            PopulatePrintItems(firstBar);
            MenuMergingRibbonBar secondBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Zoom"
            };

            PopuplateZoomItems(secondBar);
            Tab.CustomSecondChildRibbonBars.Add(firstBar);
            Tab.CustomSecondChildRibbonBars.Add(secondBar);
        }
コード例 #9
0
        /// <summary>
        /// Adding ribbon bars to the ribbon tab.
        /// </summary>
        /// <param name="Tab">Specifies the ribbon bar.</param>
        void PopulateRibbonInsertBars(MenuMergingRibbonTab Tab)
        {
            MenuMergingRibbonBar firstBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Table"
            };
            MenuMergingRibbonBar secondBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Illustrations"
            };
            MenuMergingRibbonBar thirdBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Links"
            };

            PopulateRibbonTableItems(firstBar);
            PopulateRibbonIllustrationsItems(secondBar);
            PopulateRibbonLinkItems(thirdBar);
            Tab.ModelTabRibbonBar.Add(firstBar);
            Tab.ModelTabRibbonBar.Add(secondBar);
            Tab.ModelTabRibbonBar.Add(thirdBar);
        }