ComponentFactory.Krypton.Toolkit.KryptonCheckedListBox.CheckedIndexCollection.CopyTo C# (CSharp) Method

CopyTo() public method

Copies all the elements of the current collection to the specified Array.
public CopyTo ( Array array, int index ) : void
array System.Array The Array that is the destination of the elements copied from the collection.
index int The index in array at which copying begins.
return void
            public void CopyTo(Array array, int index)
            {
                int count = _owner.CheckedItems.Count;
                for (int i = 0; i < count; i++)
                    array.SetValue(this[i], (int)(i + index));
            }