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

copyFrom() public method

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