2 // System.Windows.Forms.GridColumnStylesCollection.cs
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 // Dennis Hayes (dennish@Raytek.com)
8 // (C) 2002 Ximian, Inc
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 // "Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 using System
.Collections
;
32 using System
.ComponentModel
;
33 namespace System
.Windows
.Forms
{
38 public class GridColumnStylesCollection
: BaseCollection
, IList
{
40 private GridColumnStylesCollection(){//For signiture compatablity. Prevents the auto creation of public constructor
47 public virtual int Add(DataGridColumnStyle column
) {
48 throw new NotImplementedException ();
52 public void AddRange(DataGridColumnStyle
[] columns
)
64 public bool Contains(PropertyDescriptor propDesc
)
66 throw new NotImplementedException ();
70 public bool Contains(string name
) {
71 throw new NotImplementedException ();
75 public bool Contains(DataGridColumnStyle column
) {
76 throw new NotImplementedException ();
80 public int IndexOf(DataGridColumnStyle element
)
82 throw new NotImplementedException ();
86 public void Remove(DataGridColumnStyle column
)
92 public void RemoveAt(int index
)
98 public void ResetPropertyDescriptors()
107 public event CollectionChangeEventHandler CollectionChanged
;
110 // --- Protected Properties
113 protected override ArrayList List
{
121 // --- Protected Methods
124 protected void OnCollectionChanged(CollectionChangeEventArgs ccevent
)
129 /// IList Interface implmentation.
131 bool IList
.IsReadOnly
{
133 // We allow addition, removeal, and editing of items after creation of the list.
137 bool IList
.IsFixedSize
{
139 // We allow addition and removeal of items after creation of the list.
145 // DataGridColumnStyle IList.this[int index]{
147 // throw new NotImplementedException ();
152 public DataGridColumnStyle
this[PropertyDescriptor propDesc
]{
154 throw new NotImplementedException ();
159 // public DataGridColumnStyle this[string columnName]{
161 // throw new NotImplementedException ();
171 // DataGridColumnStyle IList.[int index]{
173 // throw new NotImplementedException ();
177 public object this[int index
]{
179 throw new NotImplementedException ();
187 int IList
.Add( object value){
188 throw new NotImplementedException ();
192 bool IList
.Contains( object value){
193 throw new NotImplementedException ();
197 int IList
.IndexOf( object value){
198 throw new NotImplementedException ();
202 void IList
.Insert(int index
, object value){
207 void IList
.Remove( object value){
212 void IList
.RemoveAt( int index
){
215 // End of IList interface
218 /// ICollection Interface implmentation.
220 int ICollection
.Count
{
222 throw new NotImplementedException ();
225 bool ICollection
.IsSynchronized
{
227 throw new NotImplementedException ();
230 object ICollection
.SyncRoot
{
232 throw new NotImplementedException ();
235 void ICollection
.CopyTo(Array array
, int index
){
238 // End Of ICollection