24 self::XL_LEGEND_POSITION_CUSTOM =>
'??',
83 if (!in_array(
$position, self::$positionXLref)) {
99 return array_search($this->position, self::$positionXLref);
111 if (!isset(self::$positionXLref[$positionXL])) {
115 $this->position = self::$positionXLref[$positionXL];
An exception for terminatinating execution or to throw for unit testing.
getPosition()
Get legend position as an excel string value.
const XL_LEGEND_POSITION_RIGHT
setPositionXL($positionXL)
Set legend position using an Excel internal numeric value.
getPositionXL()
Get legend position as an Excel internal numeric value.
const XL_LEGEND_POSITION_CORNER
getOverlay()
Get allow overlay of other elements?
const XL_LEGEND_POSITION_TOP
const XL_LEGEND_POSITION_CUSTOM
const XL_LEGEND_POSITION_BOTTOM
Legend positions.
setOverlay($overlay)
Set allow overlay of other elements?
setPosition($position)
Get legend position using an excel string value.
__construct($position=self::POSITION_RIGHT, ?Layout $layout=null, $overlay=false)
Create a new Legend.
const XL_LEGEND_POSITION_LEFT