ComponentFactory.Krypton.Toolkit.KryptonCheckSet.KryptonCheckButtonCollection.Add C# (CSharp) Method

Add() public method

Adds the specifies KryptonCheckButton to the collection.
public Add ( KryptonCheckButton checkButton ) : int
checkButton KryptonCheckButton The KryptonCheckButton object to add to the collection.
return int
            public int Add(KryptonCheckButton checkButton)
            {
                Debug.Assert(checkButton != null);

                if (checkButton == null)
                    throw new ArgumentNullException("checkButton");

                if (Contains(checkButton))
                    throw new ArgumentException("Reference already exists in the collection");

                base.List.Add(checkButton);

                return base.List.Count - 1;
            }