找回密码
 立即注册

QQ登录

只需一步,快速开始

lixingkai2

初级会员

8

主题

18

帖子

216

积分

初级会员

积分
216
lixingkai2
初级会员   /  发表于:2019-3-7 22:09  /   查看:3189  /  回复:3
RibbonGroup加工具栏用代码怎么加?

3 个回复

倒序浏览
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-3-8 17:36:57
沙发
这个在产品的开发包中的演示程序项目里有详细的代码,基本的方式如下

  1. // Create a new instance of C1Ribbon and add it to the form.
  2.             C1Ribbon c1Ribbon1 = new C1Ribbon();
  3.             this.Controls.Add(c1Ribbon1);

  4.             // Add the Home tab and the Font group.
  5.             RibbonTab homeTab = c1Ribbon1.Tabs.Add("Home");
  6.             RibbonGroup fontGroup = homeTab.Groups.Add("Font");

  7.             // Add a toolbar to arrange the buttons in a row.
  8.             RibbonToolBar toolBar1 = new RibbonToolBar();
  9.             fontGroup.Items.Add(toolBar1);

  10.             // Add the Bold, Italic, and Strike Through buttons.
  11.             toolBar1.Items.Add(new RibbonToggleButton(Properties.Resources.Bold));
  12.             toolBar1.Items.Add(new RibbonToggleButton(Properties.Resources.Italic));
  13.             toolBar1.Items.Add(new RibbonToggleButton(Properties.Resources.Strikethrough));
复制代码
回复 使用道具 举报
lixingkai2
初级会员   /  发表于:2019-3-10 16:42:31
板凳
各种控件使用说明文档有吗?
回复 使用道具 举报
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-3-11 11:04:15
地板
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部