原創(chuàng)|使用教程|編輯:郝浩|2013-05-24 11:18:45.000|閱讀 388 次
概述:從v6.023開(kāi)始,VectorDraw Developer Framework 新增DrawCCSAxis函數(shù)。本文將介紹相關(guān)的參數(shù)及使用方法。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
從v6.023開(kāi)始,VectorDraw Developer Framework 新增DrawCCSAxis函數(shù),這個(gè)函數(shù)包含以像素為單位的軸寬高。它主要用于處理文檔的OnDrawOverAll事件,用于繪制坐標(biāo)軸,并且可以以指定的尺寸繪制CCS軸。
下面是相關(guān)的參數(shù)介紹:
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下載
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件