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());
|