Skip to content

Commit 1dc3dc6

Browse files
authored
Add background color support for textboxes
1 parent b453cf0 commit 1dc3dc6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/PhpWord/Style/TextBox.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,33 @@ class TextBox extends Image
6565
* @var string
6666
*/
6767
private $borderColor;
68+
69+
/**
70+
* background color
71+
*
72+
* @var string
73+
*/
74+
private $bgColor;
75+
76+
/**
77+
* Set background color
78+
*
79+
* @param string $value
80+
*/
81+
public function setBgColor($value = null)
82+
{
83+
$this->bgColor = $value;
84+
}
85+
86+
/**
87+
* Get background color
88+
*
89+
* @return string
90+
*/
91+
public function getBgColor()
92+
{
93+
return $this->bgColor;
94+
}
6895

6996
/**
7097
* Set margin top.

0 commit comments

Comments
 (0)