// Pedro MartÃnez Juliá <pedromj@gmail.com>
//
-
-#if NET_2_0
-
using System;
using System.Collections;
using System.ComponentModel;
-namespace System.Windows.Forms {
-
+namespace System.Windows.Forms
+{
[ListBindable (false)]
- public class DataGridViewSelectedCellCollection : BaseCollection, IList, ICollection, IEnumerable {
-
+ public class DataGridViewSelectedCellCollection : BaseCollection, IList, ICollection, IEnumerable
+ {
internal DataGridViewSelectedCellCollection ()
{
}
}
object IList.this [int index] {
- get { return this[index]; }
+ get { return this [index]; }
set { throw new NotSupportedException(); }
}
public DataGridViewCell this [int index] {
- get { return (DataGridViewCell) base.List[index]; }
+ get { return (DataGridViewCell) base.List [index]; }
}
protected override ArrayList List {
get { return base.List; }
}
- int IList.Add (object o)
+ int IList.Add (object value)
{
- throw new NotSupportedException();
+ throw new NotSupportedException ();
}
void IList.Clear ()
[EditorBrowsable (EditorBrowsableState.Never)]
public void Clear ()
{
- throw new NotSupportedException("Cannot clear this base.List");
+ throw new NotSupportedException ("Cannot clear this base.List");
}
- bool IList.Contains (object o)
+ bool IList.Contains (object value)
{
- return Contains(o as DataGridViewCell);
+ return Contains (value as DataGridViewCell);
}
public bool Contains (DataGridViewCell dataGridViewCell)
{
- return base.List.Contains(dataGridViewCell);
+ return base.List.Contains (dataGridViewCell);
}
- public void CopyTo (DataGridViewCell[] array, int index)
+ public void CopyTo (DataGridViewCell [] array, int index)
{
- base.List.CopyTo(array, index);
+ base.List.CopyTo (array, index);
/*
if (array == null) {
throw new ArgumentNullException("array is null");
*/
}
- int IList.IndexOf (object o)
+ int IList.IndexOf (object value)
{
- return base.List.IndexOf(o as DataGridViewCell);
+ return base.List.IndexOf (value as DataGridViewCell);
}
- void IList.Insert (int index, object o)
+ void IList.Insert (int index, object value)
{
- Insert(index, o as DataGridViewCell);
+ Insert (index, value as DataGridViewCell);
}
[EditorBrowsable (EditorBrowsableState.Never)]
public void Insert (int index, DataGridViewCell dataGridViewCell)
{
- throw new NotSupportedException("Can't insert to selected cell base.List");
+ throw new NotSupportedException ("Can't insert to selected cell base.List");
}
- void IList.Remove (object o)
+ void IList.Remove (object value)
{
- throw new NotSupportedException("Can't remove elements of selected cell base.List.");
+ throw new NotSupportedException ("Can't remove elements of selected cell base.List.");
}
void IList.RemoveAt (int index)
{
- throw new NotSupportedException("Can't remove elements of selected cell base.List.");
+ throw new NotSupportedException ("Can't remove elements of selected cell base.List.");
}
internal void InternalAdd (DataGridViewCell dataGridViewCell)
{
- base.List.Add(dataGridViewCell);
+ base.List.Add (dataGridViewCell);
}
internal void InternalRemove (DataGridViewCell dataGridViewCell)
{
- base.List.Remove(dataGridViewCell);
+ base.List.Remove (dataGridViewCell);
}
-
}
-
}
-
-#endif