コード例 #1
0
        private DevComponents.DotNetBar.RibbonBar ProcessGroup(RibbonBar bar)
        {
            DevComponents.DotNetBar.RibbonBar groupPanel = new DevComponents.DotNetBar.RibbonBar();
            groupPanel.LicenseKey        = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
            groupPanel.Text              = bar.Name;
            groupPanel.LayoutOrientation = bar.Orientation == Orientation.Horizontal ? eOrientation.Horizontal : eOrientation.Vertical;

            foreach (var button in bar.Buttons)
            {
                var bi = ProcessButton(button);
                groupPanel.Items.Add(bi);
            }

            return(groupPanel);
        }
コード例 #2
0
 public RibbonBarBuilder InsertRibbonBar(int index, RibbonBar obj)
 {
     objects.Insert(index, obj);
     return this;
 }
コード例 #3
0
 public RibbonBarBuilder AddRibbonBar(RibbonBar obj)
 {
     objects.Add(obj);
     return this;
 }
コード例 #4
0
        private DevComponents.DotNetBar.RibbonBar ProcessGroup(RibbonBar bar)
        {
            DevComponents.DotNetBar.RibbonBar groupPanel = new DevComponents.DotNetBar.RibbonBar();
            groupPanel.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
            groupPanel.Text = bar.Name;
            groupPanel.LayoutOrientation = bar.Orientation == Orientation.Horizontal ? eOrientation.Horizontal : eOrientation.Vertical;

            foreach (var button in bar.Buttons)
            {
                var bi = ProcessButton(button);
                groupPanel.Items.Add(bi);
            }

            return groupPanel;
        }
コード例 #5
0
 public RibbonBarBuilder InsertRibbonBar(int index, RibbonBar obj)
 {
     objects.Insert(index, obj);
     return(this);
 }
コード例 #6
0
 public RibbonBarBuilder AddRibbonBar(RibbonBar obj)
 {
     objects.Add(obj);
     return(this);
 }