public int GetMinColumnIndexDefined() { if (ColumnsDef.Count > 0) { return(ColumnsDef.Min(cd => cd.Index)); } else { return(-1); } }