ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension Class Reference
+ Inheritance diagram for PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension:
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension:

Public Member Functions

 __construct ($pIndex='A')
 Create a new ColumnDimension. More...
 
 getColumnIndex ()
 Get column index as string eg: 'A'. More...
 
 setColumnIndex (string $index)
 Set column index as string eg: 'A'. More...
 
 getWidth ()
 Get Width. More...
 
 setWidth (float $width)
 Set Width. More...
 
 getAutoSize ()
 Get Auto Size. More...
 
 setAutoSize (bool $autosizeEnabled)
 Set Auto Size. More...
 
- Public Member Functions inherited from PhpOffice\PhpSpreadsheet\Worksheet\Dimension
 __construct ($initialValue=null)
 Create a new Dimension. More...
 
 getVisible ()
 Get Visible. More...
 
 setVisible (bool $visible)
 Set Visible. More...
 
 getOutlineLevel ()
 Get Outline Level. More...
 
 setOutlineLevel (int $level)
 Set Outline Level. More...
 
 getCollapsed ()
 Get Collapsed. More...
 
 setCollapsed (bool $collapsed)
 Set Collapsed. More...
 
 getXfIndex ()
 Get index to cellXf. More...
 
 setXfIndex (int $pValue)
 Set index to cellXf. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 

Private Attributes

 $columnIndex
 
 $width = -1
 
 $autoSize = false
 

Detailed Description

Definition at line 5 of file ColumnDimension.php.

Constructor & Destructor Documentation

◆ __construct()

PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension::__construct (   $pIndex = 'A')

Create a new ColumnDimension.

Parameters
string$pIndexCharacter column index

Definition at line 35 of file ColumnDimension.php.

36  {
37  // Initialise values
38  $this->columnIndex = $pIndex;
39 
40  // set dimension as unformatted by default
41  parent::__construct(0);
42  }

Member Function Documentation

◆ getAutoSize()

PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension::getAutoSize ( )

Get Auto Size.

Definition at line 87 of file ColumnDimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\$autoSize.

◆ getColumnIndex()

PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension::getColumnIndex ( )

Get column index as string eg: 'A'.

Definition at line 47 of file ColumnDimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\$columnIndex.

◆ getWidth()

PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension::getWidth ( )

Get Width.

Definition at line 67 of file ColumnDimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\$width.

◆ setAutoSize()

PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension::setAutoSize ( bool  $autosizeEnabled)

Set Auto Size.

Returns
$this

Definition at line 97 of file ColumnDimension.php.

98  {
99  $this->autoSize = $autosizeEnabled;
100 
101  return $this;
102  }

◆ setColumnIndex()

PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension::setColumnIndex ( string  $index)

Set column index as string eg: 'A'.

Returns
$this

Definition at line 57 of file ColumnDimension.php.

References $index.

58  {
59  $this->columnIndex = $index;
60 
61  return $this;
62  }
$index
Definition: metadata.php:60

◆ setWidth()

PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension::setWidth ( float  $width)

Set Width.

Returns
$this

Definition at line 77 of file ColumnDimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\$width.

78  {
79  $this->width = $width;
80 
81  return $this;
82  }

Field Documentation

◆ $autoSize

PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension::$autoSize = false
private

◆ $columnIndex

PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension::$columnIndex
private

◆ $width

PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension::$width = -1
private

The documentation for this class was generated from the following file: