public void SetValue(IRfcTable table) { this.Clear(); for (int i = 0; i < table.RowCount; i++) { table.CurrentIndex = i; BAPIACEXTC dataRow = this.CreateNewRow() as BAPIACEXTC; dataRow.SetValue(table.CurrentRow); this.Add(dataRow); } }
/// <summary> /// Determines wheter an element is in the collection. /// </summary> /// <param name="value">The BAPIACEXTC to locate in the collection.</param> /// <returns>True if found; else false.</returns> public bool Contains(BAPIACEXTC value) { return(List.Contains(value)); }
/// <summary> /// Searches for the specified BAPIACEXTC and returnes the zero-based index of the first occurrence in the collection. /// </summary> /// <param name="value">The BAPIACEXTC to locate in the collection.</param> /// <returns>The index of the object found or -1.</returns> public int IndexOf(BAPIACEXTC value) { return(List.IndexOf(value)); }
/// <summary> /// Inserts a BAPIACEXTC into the collection at the specified index. /// </summary> /// <param name="index">The zero-based index at which value should be inserted.</param> /// <param name="value">The BAPIACEXTC to insert.</param> public void Insert(int index, BAPIACEXTC value) { List.Insert(index, value); }
/// <summary> /// Adds a BAPIACEXTC to the end of the collection. /// </summary> /// <param name="value">The BAPIACEXTC to be added to the end of the collection.</param> /// <returns>The index of the newBAPIACEXTC.</returns> public int Add(BAPIACEXTC value) { return(List.Add(value)); }
/// <summary> /// Removes the first occurrence of the specified BAPIACEXTC from the collection. /// </summary> /// <param name="value">The BAPIACEXTC to remove from the collection.</param> public void Remove(BAPIACEXTC value) { List.Remove(value); }