阅读:1185回复:1
Legend如何设置多列
<P>arcmap里的legend开始可以设置列数,<BR>在程序里实例化一个LegendClass_2,如何设置它的列数呢?</P>
<P>谢谢!</P> |
|
1楼#
发布于:2006-07-24 16:51
<P>legend的列数是相对ILegendItem而言的,</P>
<P>ILegendPtr ipLegend;</P> <P>long nCount = 0;</P> <P>ipLegend->get_ItemCount(;nCount);</P> <P>ILegentItemPtr ipLI;</P> <P>for(i = 0;i<nCount-1;i++)</P> <P>{</P> <P> ipLegend->get_Item(i,;ipLI);</P> <P> if(ipLI==NULL)</P> <P> continue;</P> <P> ipLI->put_columns(4);//set 4 columns</P> <P>}</P> <P>函数记得不是很清楚,不过看看帮助文档就知道了,</P> |
|