CAD计算文字外包(com接口c#语言)

c#中代码实现说明: 

     MxDrawText text = new MxDrawText();
     text.TextString = "BBBBBB";
     text.Height = 200;
     MxDrawPoint pt, pt2;
     text.GetBoundingBox(out pt, out pt2);
 
     MessageBox.Show((pt2.x - pt.x).ToString());

 

posted on 2019-07-05 14:07  梦想CAD控件  阅读(214)  评论(0)    收藏  举报

导航