查看单个帖子
旧 2009-04-21, 11:31 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】字符串长度

字符串长度
www.dimcax.com
字符串长度
请问各位:在编程中,字符串长度如何得到?
这也太低级了嘛!字符串类型中的length属性就是字符串长度
mtext tx = new mtext(); tx .location = pt; //插入点 tx .contents = txt; //文字内容 tx .textheight = yh; // 文字高度求这样文字串长度?
你试试这个getboundingpoints
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)