#region Public Properties
public override bool IsReadOnly { get { return base.IsReadOnly; } }
- public virtual ToolStripItem this[int index] { get { return (ToolStripItem)base[index]; } }
+ public new virtual ToolStripItem this[int index] { get { return (ToolStripItem)base[index]; } }
public virtual ToolStripItem this[string key] {
get {
value.Owner = owner;
value.Parent = owner;
+
+ int index = base.Add (value);
+
owner.PerformLayout ();
owner.OnItemAdded (new ToolStripItemEventArgs (value));
- return base.Add (value);
+ return index;
}
public ToolStripItem Add (string text, Image image)
this.owner.ResumeLayout ();
}
- public virtual void Clear ()
+ public new virtual void Clear ()
{
if (this.IsReadOnly)
throw new NotSupportedException ("This collection is read-only");
owner.PerformLayout ();
}
- public void RemoveAt (int index)
+ public new void RemoveAt (int index)
{
if (this.IsReadOnly)
throw new NotSupportedException ("This collection is read-only");
#endregion
}
}
-#endif
\ No newline at end of file
+#endif