private void CB_size_Load() { CB_size.BeginUpdate(); //让控件一次刷新而不逐条刷新 //添加字段 for (int i = 1; i < 12; i++) { CB_size.Items.Add((double)(i * 0.5)); } CB_size.SelectedItem = (double)polygonsymbol.LineStyle.Size; CB_size.EndUpdate(); CB_size.Refresh(); }
private void CB_size_Load() { CB_size.BeginUpdate(); //让控件一次刷新而不逐条刷新 //添加字段 for (int i = 3; i < 15; i++) { CB_size.Items.Add(i); } CB_size.SelectedItem = (int)pointsymbol.Size; CB_size.EndUpdate(); CB_size.Refresh(); }