public MapLabel Add(string name)
        {
            MapLabel mapLabel = new MapLabel();

            mapLabel.Name = name;
            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 = mapLabel2.Location.X + 3f;
                mapLabel.Location.Y = mapLabel2.Location.Y + 3f;
            }
        }
 public void Remove(MapLabel value)
 {
     base.List.Remove(value);
 }
 public int Add(MapLabel value)
 {
     return(base.List.Add(value));
 }