找回密码
 立即注册

QQ登录

只需一步,快速开始

frank.zhang

社区贡献组

83

主题

4000

帖子

6万

积分

社区贡献组

积分
69459

活字格认证微信认证勋章元老葡萄

frank.zhang
社区贡献组   /  发表于:2015-2-17 13:44  /   查看:3954  /  回复:0
问题描述:C1PrintDocument : StartDoc-EndDoc 和 Generate 方法用法比较
问题解答:C1LinearGauge控件可以提供你所需要的确切的图形表示。您可以从水平、垂直或倾斜的线性测量控件中进行选择。C1RadialGauge控件可以提供你所需要的确切的图形表示。您可以从圆形、螺旋形、弧曲线形、双扇弧形或半圆形的对称测量控件中进行选择。

关键代码:
  1. <wijmo:C1LinearGauge ID="C1LinearGauge1" runat="server" Value="10" Width="500px">
  2. <TickMajor Factor="2" Visible="True" Offset="0" Interval="10"></TickMajor>
  3. <TickMinor Visible="False" Offset="0" Interval="5"></TickMinor>
  4. <Pointer Length="0.5" Width="4" Offset="0"></Pointer>
  5. <Animation Duration="2000" Easing="EaseOutBack"></Animation>
  6. <Face>
  7. <FaceStyle>
  8. <Fill Color="#CC66FF">
  9. </Fill>
  10. </FaceStyle>
  11. </Face>
  12. </wijmo:C1LinearGauge>
复制代码

  1. <Ranges>
  2. <Wijmo:GaugelRange EndDistance="0.58" EndValue="10" EndWidth="5" StartDistance="0.6" StartValue="0" StartWidth="2">
  3. <RangeStyle Stroke="#7BA0CC" StrokeWidth="0">
  4. <Fill Color="#7BA0CC"></Fill>
  5. </RangeStyle>
  6. </Wijmo:GaugelRange>
  7. <Wijmo:GaugelRange EndDistance="0.54" EndValue="75" EndWidth="20" StartDistance="0.58" StartValue="10" StartWidth="5">
  8. <RangeStyle Stroke="White" StrokeWidth="0">
  9. <Fill ColorBegin="#B4D5F0" ColorEnd="#B4D5F0" Type="LinearGradient"></Fill>
  10. </RangeStyle>
  11. </Wijmo:GaugelRange>
  12. <Wijmo:GaugelRange EndDistance="0.5" EndValue="100" EndWidth="25" StartDistance="0.54" StartValue="175" StartWidth="20">
  13. <RangeStyle Stroke="#7BA0CC" StrokeWidth="0">
  14. <Fill Color="#7BA0CC"></Fill>
  15. </RangeStyle>
  16. </Wijmo:GaugelRange>
  17. </Ranges>
复制代码


效果截图:




源码下载:
C1PrintDocument : StartDoc-EndDoc 和 Generate 方法用法比较示例
C1PrintDocument : StartDoc-EndDoc 和 Generate 方法用法比较VB示例

本帖子中包含更多资源

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

x

0 个回复

您需要登录后才可以回帖 登录 | 立即注册
返回顶部