ComponentFactory.Krypton.Toolkit.KryptonCheckSet.KryptonCheckButtonCollection.Insert C# (CSharp) Метод

Insert() публичный Метод

Inserts a KryptonCheckButton reference into the collection at the specified location.
public Insert ( int index, KryptonCheckButton checkButton ) : void
index int Index of position to insert.
checkButton KryptonCheckButton The KryptonCheckButton reference to insert.
Результат void
            public void Insert(int index, KryptonCheckButton checkButton)
            {
                Debug.Assert(checkButton != null);

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

                if ((index < 0) || (index > Count))
                    throw new ArgumentOutOfRangeException("index");

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

                base.List.Insert(index, checkButton);
            }