本文主要是介绍arcengine 修改图层标注大小,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
public void modifyLayerSymbol()
{
//修改图层标注大小
ILayer pLKXlayer = SurveyExtensionClass.GetLayerByName(ReadConfig.GetValue("LayerName", "注记线"), null);
IGeoFeatureLayer pGeoLayer = pLKXlayer as IGeoFeatureLayer;
IAnnotateLayerPropertiesCollection IPALPColl = pGeoLayer.AnnotationProperties;
IAnnotateLayerProperties tAnnotateLayerProperties = null;
IElementCollection tElementCollection = null;
if (IPALPColl.Count > 0)
{
IPALPColl.QueryItem(4, out tAnnotateLayerProperties, out tElementCollection, out tElementCollection);
ILabelEngineLayerProperties tLabelEngineLayerProperties = tAnnotateLayerProperties as ILabelEngineLayerProperties;
tLabelEngineLayerProperties.Symbol.Size = 24;
}
}
这篇关于arcengine 修改图层标注大小的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!