Why I mustRefresh instead of partial refresh when trying to unselect feature?

1873
3
11-01-2013 10:23 PM
Highlighted
by
New Contributor III
Hi friends,I am new to the arc object and the engine.
    Using 'IMapControlDefault.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, null, null);' or 'IMapControlDefault.Refresh(esriViewDrawPhase.esriViewGeoSelection, null, null);' does not work at all.
    using 'IMapControlDefault.Refresh();' or 'IMapControlDefault.ActiveView.Refresh();' instead will work.
    I have searched informations on the esri help document,but it seems none suit or can explain why.
Reply
0 Kudos
3 Replies
Highlighted
by
New Contributor III
Hi friends,I am new to the arc object and the engine.
    Using 'IMapControlDefault.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, null, null);' or 'IMapControlDefault.Refresh(esriViewDrawPhase.esriViewGeoSelection, null, null);' does not work at all.
    using 'IMapControlDefault.Refresh();' or 'IMapControlDefault.ActiveView.Refresh();' instead will work.
    I have searched informations on the esri help document,but it seems none suit or can explain why.


Can somebody help?
Refresh is not the only way,it also work if PartialRefresh the Selection before and after the ClearSelection.I hope someone can help me explain why.
Reply
0 Kudos
Highlighted
Regular Contributor III
Any time you call PartialRefresh you must call it twice.  You must call it once before you do whatever will need refreshing and you must call it once after you do it.
Reply
0 Kudos
Highlighted
by
New Contributor III
Any time you call PartialRefresh you must call it twice.  You must call it once before you do whatever will need refreshing and you must call it once after you do it.


Thanks for your response,It seems not that much hard to understand the 'PartialRefresh' before and after operation.But sometimes I  gonna think that why it work when using Refresh instead of PartialRefresh.
Reply
0 Kudos