www.mxdraw.com
内容索引主面
前一个向上下一个
IMxDrawText::ToCurves 方法

把文字转成一堆曲线.

IDL
[helpstring("method ToCurves")]
HRESULT ToCurves([out,retval] IMxDrawResbuf** ppCurves);

例如: C#

     MxDrawUtility mxUtility = new MxDrawUtility();

     MxDrawPoint getPt;
     MxDrawEntity ent = mxUtility.GetEntity(out getPt, "选择文字对象");
     if (ent == null)
         return;


     MxDrawText txt = (MxDrawText)ent;
     MxDrawResbuf ret  = txt.ToCurves();

     if (ret == null)
         return;
     for (int i = 0; i < ret.Count; i++)
     {

         MxDrawEntity newEnt = (MxDrawEntity)ret.AtObject(i);
         axMxDrawX1.DrawEntity(newEnt);

     }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!