public MapLabel Add(string name) { MapLabel mapLabel = new MapLabel(); mapLabel.Name = name; this.Add(mapLabel); return(mapLabel); }
protected override void OnInsertComplete(int index, object value) { base.OnInsertComplete(index, value); MapLabel mapLabel = (MapLabel)value; if (mapLabel.Position.DefaultValues && index != 0) { MapLabel mapLabel2 = this[index - 1]; mapLabel.Location.X = (float)(mapLabel2.Location.X + 3.0); mapLabel.Location.Y = (float)(mapLabel2.Location.Y + 3.0); } }
public void Remove(MapLabel value) { base.List.Remove(value); }
public int Add(MapLabel value) { return(base.List.Add(value)); }