コード例 #1
0
        public MapLabel Add(string name)
        {
            MapLabel mapLabel = new MapLabel();

            mapLabel.Name = name;
            this.Add(mapLabel);
            return(mapLabel);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public void Remove(MapLabel value)
 {
     base.List.Remove(value);
 }
コード例 #4
0
 public int Add(MapLabel value)
 {
     return(base.List.Add(value));
 }