/// <summary>
/// 展开/收缩图层的图例(最后需要执行toc的Update方法)
/// </summary>
/// <paramname="pLayer"></param>
/// <paramname="bExpand"></param>
public void ExpandLegend(ILayer pLayer, boolbExpand)
{
ILegendInfo pLegendInfo = pLayer asILegendInfo;
int iLegendGroupCount =pLegendInfo.LegendGroupCount;
ILegendGroup pLGroup;
for (int i = 0; i <iLegendGroupCount; i++)
{
pLGroup =pLegendInfo.get_LegendGroup(i);
pLGroup.Visible =bExpand;
}
axTOCControl1.Update();
}
C#+AE 展开/收缩图层的图例
最新推荐文章于 2024-01-06 21:52:27 发布