Prado\Web\UI\WebControls\TTableItemStyle::mergeWith PHP Method

mergeWith() public method

If a style field is not set in this style, it will be overwritten by the new one.
public mergeWith ( $style )
    public function mergeWith($style)
    {
        parent::mergeWith($style);
        if ($style instanceof TTableItemStyle) {
            if ($style->_verticalAlign !== null) {
                $this->_verticalAlign = $style->_verticalAlign;
            }
            if ($style->_horizontalAlign !== null) {
                $this->_horizontalAlign = $style->_horizontalAlign;
            }
            if ($style->_wrap !== null) {
                $this->_wrap = $style->_wrap;
            }
        }
    }