예제 #1
0
 private void colorRampComboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.bool_0)
     {
         IFields fields = this.igeoFeatureLayer_0.FeatureClass.Fields;
         this.ienumColors_0 = this.method_1(this.colorRampComboBox1.GetSelectColorRamp(), fields.FieldCount);
         this.ienumColors_0.Reset();
         ISymbolArray dotDensitySymbol = this.idotDensityRenderer_0.DotDensitySymbol as ISymbolArray;
         this.idotDensityRenderer_0.ColorScheme = this.colorRampComboBox1.Text;
         for (int i = 0; i < dotDensitySymbol.SymbolCount; i++)
         {
             IMarkerSymbol symbol = dotDensitySymbol.get_Symbol(i) as IMarkerSymbol;
             symbol.Color = this.ienumColors_0.Next();
             dotDensitySymbol.set_Symbol(i, symbol as ISymbol);
         }
         this.SelectFieldslistView.Invalidate();
     }
 }