Heray-Was-Here
Server : Apache
System : Linux mail.lomejor.cr 6.8.0-1059-azure #65~22.04.1-Ubuntu SMP Thu May 28 16:59:19 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
Directory :  /var/www/dev/htdocs/includes/microsoft/microsoft-graph/src/Model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/dev/htdocs/includes/microsoft/microsoft-graph/src/Model/WorkbookRangeFormat.php
<?php
/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* WorkbookRangeFormat File
* PHP version 7
*
* @category  Library
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
namespace Microsoft\Graph\Model;

/**
* WorkbookRangeFormat class
*
* @category  Model
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
class WorkbookRangeFormat extends Entity
{
    /**
    * Gets the columnWidth
    * Gets or sets the width of all colums within the range. If the column widths are not uniform, null will be returned.
    *
    * @return float|null The columnWidth
    */
    public function getColumnWidth()
    {
        if (array_key_exists("columnWidth", $this->_propDict)) {
            return $this->_propDict["columnWidth"];
        } else {
            return null;
        }
    }

    /**
    * Sets the columnWidth
    * Gets or sets the width of all colums within the range. If the column widths are not uniform, null will be returned.
    *
    * @param float $val The columnWidth
    *
    * @return WorkbookRangeFormat
    */
    public function setColumnWidth($val)
    {
        $this->_propDict["columnWidth"] = floatval($val);
        return $this;
    }

    /**
    * Gets the horizontalAlignment
    * Represents the horizontal alignment for the specified object. Possible values are: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed.
    *
    * @return string|null The horizontalAlignment
    */
    public function getHorizontalAlignment()
    {
        if (array_key_exists("horizontalAlignment", $this->_propDict)) {
            return $this->_propDict["horizontalAlignment"];
        } else {
            return null;
        }
    }

    /**
    * Sets the horizontalAlignment
    * Represents the horizontal alignment for the specified object. Possible values are: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed.
    *
    * @param string $val The horizontalAlignment
    *
    * @return WorkbookRangeFormat
    */
    public function setHorizontalAlignment($val)
    {
        $this->_propDict["horizontalAlignment"] = $val;
        return $this;
    }

    /**
    * Gets the rowHeight
    * Gets or sets the height of all rows in the range. If the row heights are not uniform null will be returned.
    *
    * @return float|null The rowHeight
    */
    public function getRowHeight()
    {
        if (array_key_exists("rowHeight", $this->_propDict)) {
            return $this->_propDict["rowHeight"];
        } else {
            return null;
        }
    }

    /**
    * Sets the rowHeight
    * Gets or sets the height of all rows in the range. If the row heights are not uniform null will be returned.
    *
    * @param float $val The rowHeight
    *
    * @return WorkbookRangeFormat
    */
    public function setRowHeight($val)
    {
        $this->_propDict["rowHeight"] = floatval($val);
        return $this;
    }

    /**
    * Gets the verticalAlignment
    * Represents the vertical alignment for the specified object. Possible values are: Top, Center, Bottom, Justify, Distributed.
    *
    * @return string|null The verticalAlignment
    */
    public function getVerticalAlignment()
    {
        if (array_key_exists("verticalAlignment", $this->_propDict)) {
            return $this->_propDict["verticalAlignment"];
        } else {
            return null;
        }
    }

    /**
    * Sets the verticalAlignment
    * Represents the vertical alignment for the specified object. Possible values are: Top, Center, Bottom, Justify, Distributed.
    *
    * @param string $val The verticalAlignment
    *
    * @return WorkbookRangeFormat
    */
    public function setVerticalAlignment($val)
    {
        $this->_propDict["verticalAlignment"] = $val;
        return $this;
    }

    /**
    * Gets the wrapText
    * Indicates if Excel wraps the text in the object. A null value indicates that the entire range doesn't have uniform wrap setting
    *
    * @return bool|null The wrapText
    */
    public function getWrapText()
    {
        if (array_key_exists("wrapText", $this->_propDict)) {
            return $this->_propDict["wrapText"];
        } else {
            return null;
        }
    }

    /**
    * Sets the wrapText
    * Indicates if Excel wraps the text in the object. A null value indicates that the entire range doesn't have uniform wrap setting
    *
    * @param bool $val The wrapText
    *
    * @return WorkbookRangeFormat
    */
    public function setWrapText($val)
    {
        $this->_propDict["wrapText"] = boolval($val);
        return $this;
    }


     /**
     * Gets the borders
    * Collection of border objects that apply to the overall range selected Read-only.
     *
     * @return array|null The borders
     */
    public function getBorders()
    {
        if (array_key_exists("borders", $this->_propDict)) {
           return $this->_propDict["borders"];
        } else {
            return null;
        }
    }

    /**
    * Sets the borders
    * Collection of border objects that apply to the overall range selected Read-only.
    *
    * @param WorkbookRangeBorder[] $val The borders
    *
    * @return WorkbookRangeFormat
    */
    public function setBorders($val)
    {
        $this->_propDict["borders"] = $val;
        return $this;
    }

    /**
    * Gets the fill
    * Returns the fill object defined on the overall range. Read-only.
    *
    * @return WorkbookRangeFill|null The fill
    */
    public function getFill()
    {
        if (array_key_exists("fill", $this->_propDict)) {
            if (is_a($this->_propDict["fill"], "\Microsoft\Graph\Model\WorkbookRangeFill") || is_null($this->_propDict["fill"])) {
                return $this->_propDict["fill"];
            } else {
                $this->_propDict["fill"] = new WorkbookRangeFill($this->_propDict["fill"]);
                return $this->_propDict["fill"];
            }
        }
        return null;
    }

    /**
    * Sets the fill
    * Returns the fill object defined on the overall range. Read-only.
    *
    * @param WorkbookRangeFill $val The fill
    *
    * @return WorkbookRangeFormat
    */
    public function setFill($val)
    {
        $this->_propDict["fill"] = $val;
        return $this;
    }

    /**
    * Gets the font
    * Returns the font object defined on the overall range selected Read-only.
    *
    * @return WorkbookRangeFont|null The font
    */
    public function getFont()
    {
        if (array_key_exists("font", $this->_propDict)) {
            if (is_a($this->_propDict["font"], "\Microsoft\Graph\Model\WorkbookRangeFont") || is_null($this->_propDict["font"])) {
                return $this->_propDict["font"];
            } else {
                $this->_propDict["font"] = new WorkbookRangeFont($this->_propDict["font"]);
                return $this->_propDict["font"];
            }
        }
        return null;
    }

    /**
    * Sets the font
    * Returns the font object defined on the overall range selected Read-only.
    *
    * @param WorkbookRangeFont $val The font
    *
    * @return WorkbookRangeFormat
    */
    public function setFont($val)
    {
        $this->_propDict["font"] = $val;
        return $this;
    }

    /**
    * Gets the protection
    * Returns the format protection object for a range. Read-only.
    *
    * @return WorkbookFormatProtection|null The protection
    */
    public function getProtection()
    {
        if (array_key_exists("protection", $this->_propDict)) {
            if (is_a($this->_propDict["protection"], "\Microsoft\Graph\Model\WorkbookFormatProtection") || is_null($this->_propDict["protection"])) {
                return $this->_propDict["protection"];
            } else {
                $this->_propDict["protection"] = new WorkbookFormatProtection($this->_propDict["protection"]);
                return $this->_propDict["protection"];
            }
        }
        return null;
    }

    /**
    * Sets the protection
    * Returns the format protection object for a range. Read-only.
    *
    * @param WorkbookFormatProtection $val The protection
    *
    * @return WorkbookRangeFormat
    */
    public function setProtection($val)
    {
        $this->_propDict["protection"] = $val;
        return $this;
    }

}

Hry