private void SetFeatureSmooting(SymbolSmoothing smooting) { if (_map == null || _map.MapElements == null) { return; } foreach (IDatasetElement dsElement in _map.MapElements) { IFeatureLayer fLayer = dsElement as IFeatureLayer; if (fLayer == null || fLayer.FeatureRenderer == null) { continue; } IFeatureRenderer fRenderer = fLayer.FeatureRenderer; foreach (ISymbol symbol in fRenderer.Symbols) { if (symbol == null) { continue; } symbol.SymbolSmothingMode = smooting; } } if (_app != null) { _app.RefreshActiveMap(DrawPhase.All); } }
public void Load(IPersistStream stream) { base.Load(stream); this.Smoothingmode = (SymbolSmoothing)stream.Load("smoothing", (int)SymbolSmoothing.None); }