You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -394,19 +394,30 @@ Jane,Doe
394
394
395
395
#### Adding layout
396
396
397
-
Under the hood this package uses the [openspout/openspout](https://github.com/openspout/openspout) package. That package contains a `StyleBuilder` that you can use to format rows. Styles can only be used on excel documents.
397
+
Under the hood this package uses the [openspout/openspout](https://github.com/openspout/openspout) package. That package contains a `Style` builder that you can use to format rows. Styles can only be used on excel documents.
398
398
399
399
```php
400
400
use OpenSpout\Common\Entity\Style\Color;
401
401
use OpenSpout\Common\Entity\Style\CellAlignment;
402
402
use OpenSpout\Common\Entity\Style\Style;
403
-
403
+
use OpenSpout\Common\Entity\Style\Border;
404
+
use OpenSpout\Common\Entity\Style\BorderPart;
405
+
406
+
/* Create a border around a cell */
407
+
$border = new Border(
408
+
new BorderPart(Border::BOTTOM, Color::LIGHT_BLUE, Border::WIDTH_THIN, Border::STYLE_SOLID),
409
+
new BorderPart(Border::LEFT, Color::LIGHT_BLUE, Border::WIDTH_THIN, Border::STYLE_SOLID),
410
+
new BorderPart(Border::RIGHT, Color::LIGHT_BLUE, Border::WIDTH_THIN, Border::STYLE_SOLID),
411
+
new BorderPart(Border::TOP, Color::LIGHT_BLUE, Border::WIDTH_THIN, Border::STYLE_SOLID)
0 commit comments