ExcelTable.SetCellTypeColumn C# (CSharp) Méthode

SetCellTypeColumn() public méthode

public SetCellTypeColumn ( int columnIndex, ExcelTableCellType type, List values = null ) : void
columnIndex int
type ExcelTableCellType
values List
Résultat void
    public void SetCellTypeColumn(int columnIndex, ExcelTableCellType type, List<string> values = null)
    {
        for (int row = 1; row <= NumberOfRows; row++)
        {
            ExcelTableCell cell = GetCell(row, columnIndex);
            if (cell != null)
            {
                cell.Type = type;
                if (values != null)
                {
                    cell.ValueSelected = values;
                }
            }
        }
    }