彩票走势图

VectorDraw Developer Framework使用教程:以指定尺寸绘制CCS轴

原创|使用教程|编辑:郝浩|2013-05-24 11:18:45.000|阅读 327 次

概述:从v6.023开始,VectorDraw Developer Framework 新增DrawCCSAxis函数。本文将介绍相关的参数及使用方法。

# 慧都年终大促·界面/图表报表/文档/IDE等千款热门软控件火热促销中 >>

相关链接:

从v6.023开始,VectorDraw Developer Framework 新增DrawCCSAxis函数,这个函数包含以像素为单位的轴宽高。它主要用于处理文档的OnDrawOverAll事件,用于绘制坐标轴,并且可以以指定的尺寸绘制CCS轴

下面是相关的参数介绍:

param name="render": The ActiveActionRender of the Document.
param name="DrawXAxis": A boolean value representing if the x axis will be drawn.
param name="DrawYaxis": A boolean value representing if the y axis will be drawn.
param name="DrawZaxis": A boolean value representing if the z axis will be drawn.
param name="DrawStrings": A boolean value representing if the strings will be drawn.
param name="XAxisColor": A System.Color indicating the color of the x axis.
param name="YAxisColor": A System.Color indicating the color of the y axis.
param name="ZAxisColor": A System.Color indicating the color of the z axis.
param name="showUserCS": A boolean value representing if the axis will be drawn relative to User Coordinate System or WorldCS.
param name="showOnOrigin": A boolean value representing if the axis will be drawn on the origin of selected Coordinate System on on the LowerLeft conrer of the screen.
param name="axiswidth": The width of the axis in pixels. The default VectorDraw axis is 5.0 pizels.
param name="axislength": The length of the axis in pixels. The default VectorDraw axis is 40.0 pizels.
public void DrawCCSAxis(vdRender render, bool DrawXAxis, bool DrawYaxis, bool DrawZaxis, bool DrawStrings, Color XAxisColor, Color YAxisColor, Color ZAxisColor, bool showUserCS, bool showOnOrigin, double axiswidth , double axislength)

覆盖DrawOverall事件的方法:

void BaseControl_DrawOverAll(object sender, vdRender render, ref bool cancel)
{
vdDocument document = sender as vdDocument;
document.ActiveLayOut.DrawCCSAxis(render, true, true, true, true, System.Drawing.Color.Red, System.Drawing.Color.Green, System.Drawing.Color.Blue, true, true,10.0,80.0);
cancel = true;
}

* VectorDraw Developer Framework下载


标签:

本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@pclwef.cn

文章转载自:慧都控件

为你推荐

  • 推荐视频
  • 推荐活动
  • 推荐产品
  • 推荐文章
  • 慧都慧问
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP