Text size of labels on ForceElements is not consistent.
上次发布: December 8, 2014ArcGIS for Desktop
漏洞 ID 编号
NIM038484
已提交
September 15, 2008
上次修改时间
April 2, 2025
适用范围
ArcGIS for Desktop
找到的版本
9.3
编程语言
C#
修正版本
10
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
It is possible to temporarily work around this problem by setting the text size explicitly in the ForceElement Render, using the code: IForceElementRenderer forceElementRenderer = (IForceElementRenderer)renderer; IFEGraphicStyle feGraphicStyle = forceElementRenderer.Style; ITextSymbol textSymbol = feGraphicStyle.TextSymbol; textSymbol.Size = Convert.ToDouble(m_TextHeight);And then calling a display list refresh using the code: ((IDisplayList)m_forceElementLayerFriendly.DisplayList).Refresh(display, null); axMapControl1.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, (ILayer)m_forceElementLayerFriendly, axMapControl1.ActiveView.Extent);To run the workaround:1. Press 'Work around label issue.'2. Observe that the text height is consistent (though it is too small to be readable)