//修改符号大小
IFeatureLayer pLayer = SurveyExtensionClass.GetLayerByName(ReadConfig.GetValue("LayerName", "注记点"), "规划编制设计地图") as IFeatureLayer;
IFeatureLayer pFeatureLayer = pLayer as IFeatureLayer;
ILegendInfo lengendInfo = (ILegendInfo)pFeatureLayer;
ILegendGroup legendGroup = lengendInfo.get_LegendGroup(1);
ILegendClass pLegendClass = null;
for (int i = 0; i < legendGroup.ClassCount; i++)
{
ILegendClass pLClass = legendGroup.get_Class(i);
if (pLClass.Label == "标高注记")
{
pLegendClass = pLClass;
}
}
if (pLegendClass != null)
{
ISymbol pSym = pLegendClass.Symbol;
(pSym as IMarkerSymbol).Size = size;
ArcMap.Document.ActiveView.Refresh();
}
arcengine 修改符号大小
最新推荐文章于 2024-09-02 16:43:09 发布