arcengine 专题图生成去除引线方法(Leader Lines)

arcengine 生成的专题图,在arcMap里面有个去除引线的选项,但是arcengine里面借口找了很久没有找到。

于是想了以下一个方法来解决这个问题,实质是将引线设为透明。

 

代码:

ISimpleLineSymbol ldrLine = new SimpleLineSymbol();

IColor color = GetColor(255, 0, 0);          

color.NullColor = true;          

ldrLine.Color = color; // 透明色

ILineCallout lineCallout = new LineCallout();         

lineCallout.Style = esriLineCalloutStyle.esriLCSBase;          

lineCallout.Border = null;          

lineCallout.AccentBar = null;           

lineCallout.LeaderLine = ldrLine;

IMarkerBackgroundSupport pBgSupport = pBarChartSymbol as IMarkerBackgroundSupport;          

pBgSupport.Background=lineCallout as IMarkerBackground;

           

 

 

 

 

 

 

 

 

 

 

实质上引线作为的是背景,想来也是挺新奇的啊...

posted @ 2012-04-24 13:45  馨语随风  阅读(449)  评论(0编辑  收藏  举报