ExcelAnt\Adapter\PhpExcel\Sheet\Sheet::setColumnWidth PHP Метод

setColumnWidth() публичный Метод

public setColumnWidth ( $width, $index )
    public function setColumnWidth($width, $index)
    {
        if (false === filter_var($width, FILTER_VALIDATE_INT)) {
            throw new \InvalidArgumentException("Index must be numeric");
        }
        if (false === filter_var($index, FILTER_VALIDATE_INT)) {
            throw new \InvalidArgumentException("Index must be numeric");
        }
        $this->phpExcelWorksheet->getColumnDimensionByColumn($index)->setWidth($width);
        return $this;
    }