fix typo
[mcs.git] / class / System.Drawing / System.Drawing / PlainImageCollection.jvm.cs
blob1274948840f22c31b76f7f3a19ed3ac22bb4847c
1 using System;
2 using System.Collections;
4 namespace Mainsoft.Drawing.Imaging
6 /// <summary>
7 /// Summary description for PlainImageCollection.
8 /// </summary>
9 public class PlainImageCollection : ICollection, IEnumerable
11 ArrayList collection = new ArrayList();
12 int _position = 0;
14 public PlainImageCollection()
17 // TODO: Add constructor logic here
21 #region ICollection members
23 public bool IsSynchronized {
24 get {
25 return collection.IsSynchronized;
29 public int Count {
30 get {
31 return collection.Count;
35 public void CopyTo(Array array, int index) {
36 collection.CopyTo(array, index);
39 public object SyncRoot {
40 get {
41 return collection.SyncRoot;
45 #endregion
47 #region IEnumerable members
49 public IEnumerator GetEnumerator() {
50 return collection.GetEnumerator();
53 #endregion
55 #region Collection members
57 public int Add(PlainImage plainImage) {
58 return collection.Add( plainImage );
61 public void Clear() {
62 collection.Clear();
65 public bool Contains(PlainImage plainImage) {
66 return collection.Contains(plainImage);
69 public int IndexOf(PlainImage plainImage) {
70 return collection.IndexOf( plainImage );
73 public void Insert(int index, PlainImage value) {
74 collection.Insert( index, value );
77 public void Remove(PlainImage value) {
78 collection.Remove( value );
81 public void RemoveAt(int index) {
82 collection.RemoveAt( index );
85 public PlainImage this[int index] {
86 get { return (PlainImage) collection[ index ]; }
89 public PlainImage CurrentImage {
90 get { return (PlainImage) collection[ _position ]; }
91 set { collection[ _position ] = value; }
94 public int CurrentImageIndex {
95 get { return _position; }
96 set { _position = value; }
99 #endregion