Update README.md (#398)

This commit is contained in:
Adrien Loison 2017-03-27 18:28:12 +02:00 committed by GitHub
parent 33c9d2f2ed
commit d898f91917

View File

@ -200,16 +200,16 @@ $writer->setDefaultRowStyle($defaultStyle)
Unfortunately, Spout does not support all the possible formatting options yet. But you can find the most important ones: Unfortunately, Spout does not support all the possible formatting options yet. But you can find the most important ones:
Category | Property | API | Category | Property | API
----------|---------------|--------------------------------------- |-----------|---------------|---------------------------------------
Font | Bold | `StyleBuilder::setFontBold()` | Font | Bold | `StyleBuilder::setFontBold()`
| Italic | `StyleBuilder::setFontItalic()` | | Italic | `StyleBuilder::setFontItalic()`
| Underline | `StyleBuilder::setFontUnderline()` | | Underline | `StyleBuilder::setFontUnderline()`
| Strikethrough | `StyleBuilder::setFontStrikethrough()` | | Strikethrough | `StyleBuilder::setFontStrikethrough()`
| Font name | `StyleBuilder::setFontName('Arial')` | | Font name | `StyleBuilder::setFontName('Arial')`
| Font size | `StyleBuilder::setFontSize(14)` | | Font size | `StyleBuilder::setFontSize(14)`
| Font color | `StyleBuilder::setFontColor(Color::BLUE)`<br>`StyleBuilder::setFontColor(Color::rgb(0, 128, 255))` | | Font color | `StyleBuilder::setFontColor(Color::BLUE)`<br>`StyleBuilder::setFontColor(Color::rgb(0, 128, 255))`
Alignment | Wrap text | `StyleBuilder::setShouldWrapText(true|false)` | Alignment | Wrap text | `StyleBuilder::setShouldWrapText(true|false)`
#### New sheet creation #### New sheet creation