ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ColumnDimension.php
Go to the documentation of this file.
1 <?php
2 
4 
6 {
12  private $columnIndex;
13 
21  private $width = -1;
22 
28  private $autoSize = false;
29 
35  public function __construct($pIndex = 'A')
36  {
37  // Initialise values
38  $this->columnIndex = $pIndex;
39 
40  // set dimension as unformatted by default
41  parent::__construct(0);
42  }
43 
47  public function getColumnIndex(): string
48  {
49  return $this->columnIndex;
50  }
51 
57  public function setColumnIndex(string $index)
58  {
59  $this->columnIndex = $index;
60 
61  return $this;
62  }
63 
67  public function getWidth(): float
68  {
69  return $this->width;
70  }
71 
77  public function setWidth(float $width)
78  {
79  $this->width = $width;
80 
81  return $this;
82  }
83 
87  public function getAutoSize(): bool
88  {
89  return $this->autoSize;
90  }
91 
97  public function setAutoSize(bool $autosizeEnabled)
98  {
99  $this->autoSize = $autosizeEnabled;
100 
101  return $this;
102  }
103 }
__construct($pIndex='A')
Create a new ColumnDimension.
setColumnIndex(string $index)
Set column index as string eg: &#39;A&#39;.
$index
Definition: metadata.php:60
setAutoSize(bool $autosizeEnabled)
Set Auto Size.
getColumnIndex()
Get column index as string eg: &#39;A&#39;.