System.Windows.Forms.ComboBox.ObjectCollection.Add C# (CSharp) Method

Add() public method

public Add ( object item ) : int
item object
return int
			public int Add (object item)
			{
				int idx;
				
				idx = AddItem (item, false);
				owner.UpdatedItems ();
				return idx;
			}

Usage Example

 //methods that intialize and adds members to the two collections
 private void FillWideCollection()
 {
     WideCollection = new ComboBox.ObjectCollection(this.ResCntrl);
     WideCollection.Add("1024 x 576");
     WideCollection.Add("1366 x 768");
     WideCollection.Add("1600 x 900");
 }
All Usage Examples Of System.Windows.Forms.ComboBox.ObjectCollection::Add