ArcMapAddinDistanceAndDirection.ViewModels.TabBaseViewModel.OnClearGraphics C# (CSharp) Метод

OnClearGraphics() приватный Метод

Clears all the graphics from the maps graphic container Inlucdes temp and map graphics Only removes temp and map graphics that were created by this add-in
private OnClearGraphics ( object obj ) : void
obj object
Результат void
        private void OnClearGraphics(object obj)
        {
            var mxdoc = ArcMap.Application.Document as IMxDocument;
            if (mxdoc == null)
                return;
            var av = mxdoc.FocusMap as IActiveView;
            if (av == null)
                return;
            var gc = av as IGraphicsContainer;
            if (gc == null)
                return;

            RemoveGraphics(gc, false);
            
            //gc.DeleteAllElements();
            //av.Refresh();
			av.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);

            RaisePropertyChanged(() => HasMapGraphics);
        }