示例#1
0
 /// <summary>
 /// Copies data to the data column with the provided index if both columns are of the same type. If they are not of the same type, the column is replaced by the provided column. If the index is beyoind the limit, the provided column is added.
 /// </summary>
 /// <param name="idx">The index of the column where to copy to, or replace.</param>
 /// <param name="datac">The column to copy.</param>
 /// <param name="name">The name of the column in the case the column is added or replaced.</param>
 public virtual void CopyOrReplaceOrAdd(int idx, Altaxo.Data.DataColumn datac, string name)
 {
     Suspend();
     _dataColumns.CopyOrReplaceOrAdd(idx, datac, name); // add the column to the collection
     // no need to insert a property row here (only when inserting)
     Resume();
 }