liuyunwild
路人甲
路人甲
  • 注册日期2006-06-08
  • 发帖数4
  • QQ
  • 铜币124枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1185回复:1

Legend如何设置多列

楼主#
更多 发布于:2006-06-09 15:39
<P>arcmap里的legend开始可以设置列数,<BR>在程序里实例化一个LegendClass_2,如何设置它的列数呢?</P>
<P>谢谢!</P>
喜欢0 评分0
kevinh
路人甲
路人甲
  • 注册日期2006-06-28
  • 发帖数6
  • QQ
  • 铜币127枚
  • 威望0点
  • 贡献值0点
  • 银元0个
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>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部