コード例 #1
0
        public void SetValue(IRfcTable table)
        {
            this.Clear();

            for (int i = 0; i < table.RowCount; i++)
            {
                table.CurrentIndex = i;
                YGETFIDOC_I dataRow = this.CreateNewRow() as YGETFIDOC_I;
                dataRow.SetValue(table.CurrentRow);
                this.Add(dataRow);
            }
        }
コード例 #2
0
 /// <summary>
 /// Determines wheter an element is in the collection.
 /// </summary>
 /// <param name="value">The YGETFIDOC_I to locate in the collection.</param>
 /// <returns>True if found; else false.</returns>
 public bool Contains(YGETFIDOC_I value)
 {
     return(List.Contains(value));
 }
コード例 #3
0
 /// <summary>
 /// Searches for the specified YGETFIDOC_I and returnes the zero-based index of the first occurrence in the collection.
 /// </summary>
 /// <param name="value">The YGETFIDOC_I to locate in the collection.</param>
 /// <returns>The index of the object found or -1.</returns>
 public int IndexOf(YGETFIDOC_I value)
 {
     return(List.IndexOf(value));
 }
コード例 #4
0
 /// <summary>
 /// Inserts a YGETFIDOC_I 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 YGETFIDOC_I to insert.</param>
 public void Insert(int index, YGETFIDOC_I value)
 {
     List.Insert(index, value);
 }
コード例 #5
0
 /// <summary>
 /// Adds a YGETFIDOC_I to the end of the collection.
 /// </summary>
 /// <param name="value">The YGETFIDOC_I to be added to the end of the collection.</param>
 /// <returns>The index of the newYGETFIDOC_I.</returns>
 public int Add(YGETFIDOC_I value)
 {
     return(List.Add(value));
 }
コード例 #6
0
 /// <summary>
 /// Removes the first occurrence of the specified YGETFIDOC_I from the collection.
 /// </summary>
 /// <param name="value">The YGETFIDOC_I to remove from the collection.</param>
 public void Remove(YGETFIDOC_I value)
 {
     List.Remove(value);
 }