Files
mono/mcs/class/System.Drawing/System.Drawing.Design/ToolboxItemCollection.cs
T
2003-06-21 17:39:54 +00:00

49 lines
932 B
C#

//
// System.Drawing.Design.ToolboxItemCollection.cs
//
// Authors:
// Martin Willemoes Hansen ([email protected])
// Andreas Nahr ([email protected])
//
// (C) 2003 Martin Willemoes Hansen
// (C) 2003 Andreas Nahr
//
using System.Collections;
namespace System.Drawing.Design
{
public sealed class ToolboxItemCollection : ReadOnlyCollectionBase
{
public ToolboxItemCollection (ToolboxItem[] value)
{
InnerList.AddRange (value);
}
public ToolboxItemCollection (ToolboxItemCollection value)
{
InnerList.AddRange (value);
}
public ToolboxItem this [int index] {
get { return (ToolboxItem) InnerList[index]; }
}
public bool Contains (ToolboxItem value)
{
return InnerList.Contains (value);
}
public void CopyTo (ToolboxItem[] array, int index)
{
InnerList.CopyTo (array, index);
}
public int IndexOf (ToolboxItem value)
{
return InnerList.IndexOf (value);
}
}
}