如何得到文字内容?
MxDraw网页开发|冯美娟|2019-03-01 10:23
-
回答:
var selEnt = mxOcx.NewComObject("IMxDrawUiPrEntity"); selEnt.message = "选择文字"; if(selEnt.go() != 1) return; var image = selEnt.Entity(); if(image == null) return; if (image.ObjectName == "McDbText") { var sTxt =image.TextString ; alert(sTxt); }