找回密码
 立即注册

QQ登录

只需一步,快速开始

lucklyme

银牌会员

8

主题

16

帖子

3422

积分

银牌会员

积分
3422

活字格认证

lucklyme
银牌会员   /  发表于:2014-9-11 14:19  /   查看:5264  /  回复:5

请问,这个C1GaugeCaption的值怎么通过程序修改?谢谢

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

5 个回复

倒序浏览
Alice
社区贡献组   /  发表于:2014-9-11 14:47:00
沙发
回复 1楼lucklyme的帖子

设计时,使用designer添加的步骤如下:
1. In the Item Editor, expand the Filling node within the Pointer node, and set the Color property to Black.
2. Expand the Filling node within the Cap node, and set the Color property to DarkGray.
3. Click the ellipsis button next to FaceShapes. The FaceShapes Collection Editor opens.
4. Click the Add drop-down arrow and select C1GaugeCaption.
5. Enter C1Gauge next to the Text property.
6. Set the Color property to Red.
7. Enter .9 next to the CenterPointY property. This will move the text down the gauge.
8. Click OK to close the FaceShapes Collection Editor and click OK again to close the Item Editor.

运行时,代码参考如下:
  1. using C1.Win.C1Gauge;

  2. private void button1_Click(object sender, System.EventArgs e)
  3. {
  4.     C1GaugeCaption cap = C1GaugeCaption();
  5.     cap.Text = "Hello, I’m a caption.";
  6.     cap.CenterPointX = 0.5;
  7.     cap.CenterPointY = 0.2;
  8.     cap.FontSize = 8;
  9.     cap.Color = Color.DarkSlateBlue;

  10.     //C1RadialGauge1.FaceShapes.Add(cap);
  11.     C1Gauge1.CoverShapes.Add(cap);
  12. }
复制代码
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
lucklyme
银牌会员   /  发表于:2014-9-11 15:34:00
板凳
回复 2楼Alice的帖子

谢谢可以了
回复 使用道具 举报
lucklyme
银牌会员   /  发表于:2014-9-11 15:38:00
地板
回复 2楼Alice的帖子

对了,能不能再问个问题,我想让窗体透明只剩下这个仪表显示,但是我用me.backcolor=black  me.transparencykey=black。在仪表周围依旧有个框,就像我上面的那张图一样。但是把这个控件去了,窗体部分已经透明了
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2014-9-11 18:49:00
5#
回复 4楼lucklyme的帖子

这个问题已经收到了,我尝试下看怎么设置明天给你回复。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2014-9-12 09:53:00
6#
回复 4楼lucklyme的帖子

在另一个帖子里已经回复该问题。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部