www.mxdraw.com
内容索引主面
前一个向上下一个
IMxDrawText 接口

控件的文字对象类型

IDL
[ object, uuid(268C0632-B108-43E5-B942-D2E8E5B9E827), dual, nonextensible, helpstring("IMxDrawText interface"), pointer_default(unique) ]
interface IMxDrawText : IMxDrawEntity;

MxDrawText.idl

例如: 计算文字的外包

     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());
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!