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

Sets the items in the collection.
public SetItems ( object editValue, object values ) : void
editValue object The collection object being edited.
values object The objects to be added in the collection.
Результат void
Пример #1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            object[] values = new object[lines];
            for (int i = 0; i < textBox1.Lines.Length; i++)
            {
                string line = textBox1.Lines[i];
                values[i] = Convert.ChangeType(line, editor.CollectionItemType);
            }

            editor.SetItems(value, values);
        }