几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(VB.NET/C#) (http://www.dimcax.com/hust/forumdisplay.php?f=176)
-   -   【转帖】字符串长度 (http://www.dimcax.com/hust/showthread.php?t=9618)

yang686526 2009-04-21 11:31 AM

【转帖】字符串长度
 
字符串长度
www.dimcax.com
字符串长度
请问各位:在编程中,字符串长度如何得到?
这也太低级了嘛!字符串类型中的length属性就是字符串长度
mtext tx = new mtext(); tx .location = pt; //插入点 tx .contents = txt; //文字内容 tx .textheight = yh; // 文字高度求这样文字串长度?
你试试这个getboundingpoints


所有的时间均为北京时间。 现在的时间是 06:36 AM.