ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
ColumnDimension.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Worksheet
;
4
5
class
ColumnDimension
extends
Dimension
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
}
PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\$columnIndex
$columnIndex
Definition:
ColumnDimension.php:12
PhpOffice\PhpSpreadsheet\Worksheet
PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\__construct
__construct($pIndex='A')
Create a new ColumnDimension.
Definition:
ColumnDimension.php:35
PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\setColumnIndex
setColumnIndex(string $index)
Set column index as string eg: 'A'.
Definition:
ColumnDimension.php:57
PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension
Definition:
ColumnDimension.php:5
$index
$index
Definition:
metadata.php:60
PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\getAutoSize
getAutoSize()
Get Auto Size.
Definition:
ColumnDimension.php:87
PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\setAutoSize
setAutoSize(bool $autosizeEnabled)
Set Auto Size.
Definition:
ColumnDimension.php:97
PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\getColumnIndex
getColumnIndex()
Get column index as string eg: 'A'.
Definition:
ColumnDimension.php:47
PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\setWidth
setWidth(float $width)
Set Width.
Definition:
ColumnDimension.php:77
PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\$autoSize
$autoSize
Definition:
ColumnDimension.php:28
PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\$width
$width
Definition:
ColumnDimension.php:21
PhpOffice\PhpSpreadsheet\Worksheet\Dimension
Definition:
Dimension.php:7
PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension\getWidth
getWidth()
Get Width.
Definition:
ColumnDimension.php:67
php
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Worksheet
ColumnDimension.php
Generated on Thu Jan 16 2025 19:01:47 for ILIAS by
1.8.13 (using
Doxyfile
)