请问如何使用ArcEngine实现(在右击图例中)Convert To Gtaphics这一功能?

主要是想通过代码实现图例的Convert To Gtaphics,看了接口,发现并没有可用的信息,请专家指点一二。
pic.png
已邀请:
参考IGraphicsComposite接口。下面代码供参考:

// Convert legend to graphics 
IPageLayout pageLayout = mxDoc.PageLayout; 
IActiveView activeView = (IActiveView) pageLayout; 
IGraphicsContainer graphicsContainer = pageLayout as IGraphicsContainer; graphicsContainer.Reset(); IElement element = graphicsContainer.Next(); 
while (element != null) 
{ if (element is IMapSurroundFrame) { IMapSurround mapSurround = ((IMapSurroundFrame)element).MapSurround; if (mapSurround is ILegend) { ILegend legend = (ILegend)mapSurround; IGraphicsComposite graphComp = (IGraphicsComposite)legend; IEnumElement enumElem = graphComp.get_Graphics(activeView.ScreenDisplay, element.Geometry.Envelope); ... } } element = graphicsContainer.Next(); }
 

要回复问题请先登录注册