‘IViewRefresh.RefreshItem’ method throws error “ArgumentException ("Value does not fall within the expected range.")” while refreshing the bounds of newly added graphic element to the graphics container
上次发布: August 31, 2014ArcGIS Engine
漏洞 ID 编号
NIM076230
已提交
December 14, 2011
上次修改时间
June 5, 2024
适用范围
ArcGIS Engine
找到的版本
10.0
编程语言
C#
操作系统
Windows OS
操作系统版本
7 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.
解决办法
1. Comment the following lines of code in the application:((IViewRefresh)axMapControl1.ActiveView).RefreshItem(Element);And uncomment the below lines of code:((IViewRefresh)axMapControl1.ActiveView).PartialRefreshShape(esriViewDrawPhase.esriViewGraphics, Element, Element.Geometry, 1); 2. Run the application in debug mode.3. Use the ‘New polygon’ element tool to draw a new polygon on the map. 4. The ElementAdded event is then fired, and the code will execute successfully.