PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.4.7
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.4.7
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
visualizer / vendor / phpoffice / phpspreadsheet / src / PhpSpreadsheet / Worksheet / ColumnDimension.php

ColumnDimension.php in Visualizer – Tables & Charts Manager with Built-in AI Generator 3.4.7, at vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ColumnDimension.php

116 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace PhpOffice\PhpSpreadsheet\Worksheet;
4
5 class ColumnDimension extends Dimension
6 {
7 /**
8 * Column index.
9 *
10 * @var string
11 */
12 private $columnIndex;
13
14 /**
15 * Column width.
16 *
17 * When this is set to a negative value, the column width should be ignored by IWriter
18 *
19 * @var float
20 */
21 private $width = -1;
22
23 /**
24 * Auto size?
25 *
26 * @var bool
27 */
28 private $autoSize = false;
29
30 /**
31 * Create a new ColumnDimension.
32 *
33 * @param string $pIndex Character column index
34 */
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
44 /**
45 * Get ColumnIndex.
46 *
47 * @return string
48 */
49 public function getColumnIndex()
50 {
51 return $this->columnIndex;
52 }
53
54 /**
55 * Set ColumnIndex.
56 *
57 * @param string $pValue
58 *
59 * @return ColumnDimension
60 */
61 public function setColumnIndex($pValue)
62 {
63 $this->columnIndex = $pValue;
64
65 return $this;
66 }
67
68 /**
69 * Get Width.
70 *
71 * @return float
72 */
73 public function getWidth()
74 {
75 return $this->width;
76 }
77
78 /**
79 * Set Width.
80 *
81 * @param float $pValue
82 *
83 * @return ColumnDimension
84 */
85 public function setWidth($pValue)
86 {
87 $this->width = $pValue;
88
89 return $this;
90 }
91
92 /**
93 * Get Auto Size.
94 *
95 * @return bool
96 */
97 public function getAutoSize()
98 {
99 return $this->autoSize;
100 }
101
102 /**
103 * Set Auto Size.
104 *
105 * @param bool $pValue
106 *
107 * @return ColumnDimension
108 */
109 public function setAutoSize($pValue)
110 {
111 $this->autoSize = $pValue;
112
113 return $this;
114 }
115 }
116