private void btnUnSelectAll_Click(object sender, EventArgs e) { for (int i = 0; i < this.SelectFieldslistView.Items.Count; i++) { ListViewItemEx ex = this.SelectFieldslistView.Items[i] as ListViewItemEx; this.FieldsListBoxCtrl.Items.Add(ex.Tag); } this.SelectFieldslistView.Items.Clear(); ISymbolArray dotDensitySymbol = this.idotDensityRenderer_0.DotDensitySymbol as ISymbolArray; (this.idotDensityRenderer_0 as IRendererFields).ClearFields(); dotDensitySymbol.ClearSymbols(); }
private IChartRenderer CreateRenderer(IFeatureClass featureClass) { if (chartSymbol == null) { return(null); } double dmaxValue = 0.0; dmaxValue = FindMaxValueInRendererFields(featureClass); chartSymbol.MaxValue = dmaxValue; IMarkerSymbol pMarkerSymbol = (IMarkerSymbol)chartSymbol; pMarkerSymbol.Size = symbolSize; //Now set up symbols for each bar ISymbolArray pSymbolArray = (ISymbolArray)chartSymbol; pSymbolArray.ClearSymbols(); IChartRenderer pChartRenderer = new ChartRendererClass(); IRendererFields pRendererFields = (IRendererFields)pChartRenderer; foreach (System.Collections.DictionaryEntry de in fieldSymbolHashTable) { string strField = de.Key.ToString();; ISymbol symbol = de.Value as ISymbol; pRendererFields.AddField(strField, strField); pSymbolArray.AddSymbol(symbol); } pChartRenderer.ChartSymbol = chartSymbol; pChartRenderer.Label = "统计符号化"; pChartRenderer.UseOverposter = false; if (gBaseSymbol != nudDotSize) { pChartRenderer.BaseSymbol = gBaseSymbol; } pChartRenderer.CreateLegend(); return(pChartRenderer); }