www.mxdraw.com
内容索引主面
前一个向上下一个
McDbComment 类

在图上,绘制一个批注

C++
class McDbComment : public McDbEntity;

McDbComment.h

例如:C#代码,绘制一个圆的云线批注

        private void button16_Click(object sender, EventArgs e)
        {
            MxDrawComment com = new MxDrawComment();

            MxDrawPoint pt = new MxDrawPoint();
            pt.x = 200;
            pt.y = 200;
            com.basePoint = pt;

            pt.x = 300;
            pt.y = 300;

            com.Position = pt;
            com.Text = "Test";

            MxDrawPoints pts = new MxDrawPoints();
            pts.Add(-100, -100, 0);
            pts.Add(100, 100, 0);

            com.Bounding = pts;

            com.ArrowType = 2;

            com.BoundingBoxType = 5;

            com.Bounding = pts;

            com.ShapRadius = 50;

            com.TextHeight = 100;

            axMxDrawX1.DrawEntity(com);

            axMxDrawX1.ZoomAll();
        }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!