/// <summary> /// /// </summary> /// <param name="?"></param> /// <param name="texts"></param> /// <returns></returns> private static ColumnNameTextCollection Create(string[] names, string[] texts) { ColumnNameTextCollection s = new ColumnNameTextCollection(); for (int i = 0; i < names.Length; i++) { ColumnNameText item = new ColumnNameText(); item.Name = names[i]; item.Text = texts[i]; s.Add(item); } return(s); }
/// <summary> /// /// </summary> /// <param name="?"></param> /// <param name="texts"></param> /// <returns></returns> private static ColumnNameTextCollection Create(string[] names, string[] texts) { ColumnNameTextCollection s = new ColumnNameTextCollection(); for (int i = 0; i < names.Length; i++) { ColumnNameText item = new ColumnNameText(); item.Name = names[i]; item.Text = texts[i]; s.Add(item); } return s; }