控件的文字对象类型
[ 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());