⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imagecollection.cs

📁 这是一个小型的相片管理器
💻 CS
字号:
using System;
using System.Drawing;

namespace VirtualPhotoOrganizer.Photo
{
	/// <summary>
	/// allows easy reordering of images used in an imagelist
	/// </summary>
	public class ImageCollection : System.Collections.CollectionBase
	{
		#region public accessors

		public int Add(Image i) {
			return List.Add(i);
		}

		public void Insert(int index, Image i) {
			List.Insert(index, i);
		}

		public void Remove(Image i) {
			List.Remove(i);
		}

		public void RemoveAt(int index) {
			List.RemoveAt(index);
		}

		public bool Contains(Image i) {
			return List.Contains(i);
		}

		public int IndexOf(Image i) {
			return List.IndexOf(i);
		}

		public void CopyTo(Image[] array, int index) {
			List.CopyTo(array, index);
		}

		public Image this[int index] {
			get { return (Image) List[index]; }
			set { List[index] = value; }
		}

		#endregion
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -