Example #1
0
 /// <summary>
 /// Remove item from collection
 /// </summary>
 /// <param name="item">image item</param>
 public void Remove(ImageItem item)
 {
     list.Remove(item);
 }
Example #2
0
 /// <summary>
 /// Insert a item into collection
 /// </summary>
 /// <param name="index">index of item</param>
 /// <param name="item">image item</param>
 public void Insert(int index, ImageItem item)
 {
     list.Insert(index, item);
 }
Example #3
0
 /// <summary>
 /// Get index of item in collection
 /// </summary>
 /// <param name="item">image item</param>
 /// <returns>index of item</returns>
 public int IndexOf(ImageItem item)
 {
     return list.IndexOf(item);
 }
Example #4
0
 /// <summary>
 /// Determines whether collection contains the item
 /// </summary>
 /// <param name="item">image item</param>
 /// <returns>true if collection contains item, otherwise false</returns>
 public bool Contains(ImageItem item)
 {
     return list.Contains(item);
 }
Example #5
0
 /// <summary>
 /// Add a image item to collection
 /// </summary>
 /// <param name="item">image item</param>
 /// <returns>index of item</returns>
 public int Add(ImageItem item)
 {
     return list.Add(item);
 }
Example #6
0
 //private string imagePath;
 //[Browsable(false)]
 //public string ImagePath
 //{
 //    get { return imagePath; }
 //    set { imagePath = value; }
 //}
 /// <summary>
 /// Create a new copy of image item
 /// </summary>
 /// <returns></returns>
 public ImageItem Copy()
 {
     ImageItem imageItem = new ImageItem();
     imageItem.Name = this.Name;
     imageItem.Image = this.Image;
     imageItem.ImageUrl = this.ImageUrl;
       //          imageItem.ImagePath = this.ImagePath;
     return imageItem;
 }