\PHPExcel_Comment

PHPExcel_Comment

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Summary

Methods
Properties
Constants
__construct()
getAuthor()
setAuthor()
getText()
setText()
getWidth()
setWidth()
getHeight()
setHeight()
getMarginLeft()
setMarginLeft()
getMarginTop()
setMarginTop()
getVisible()
setVisible()
getFillColor()
setAlignment()
getAlignment()
getHashCode()
__clone()
__toString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$author
$text
$width
$marginLeft
$marginTop
$visible
$height
$fillColor
$alignment
N/A

Properties

$author

$author : string

Author

Type

string

$width

$width : string

Comment width (CSS style, i.e. XXpx or YYpt)

Type

string

$marginLeft

$marginLeft : string

Left margin (CSS style, i.e. XXpx or YYpt)

Type

string

$marginTop

$marginTop : string

Top margin (CSS style, i.e. XXpx or YYpt)

Type

string

$visible

$visible : boolean

Visible

Type

boolean

$height

$height : string

Comment height (CSS style, i.e. XXpx or YYpt)

Type

string

$alignment

$alignment : string

Alignment

Type

string

Methods

__construct()

__construct() 

Create a new PHPExcel_Comment

Throws

\PHPExcel_Exception

getAuthor()

getAuthor() : string

Get Author

Returns

string

setAuthor()

setAuthor(string  $pValue = '') : \PHPExcel_Comment

Set Author

Parameters

string $pValue

Returns

\PHPExcel_Comment

getText()

getText() : \PHPExcel_RichText

Get Rich text comment

Returns

\PHPExcel_RichText

getWidth()

getWidth() : string

Get comment width (CSS style, i.e. XXpx or YYpt)

Returns

string

setWidth()

setWidth(string  $value = '96pt') : \PHPExcel_Comment

Set comment width (CSS style, i.e. XXpx or YYpt)

Parameters

string $value

Returns

\PHPExcel_Comment

getHeight()

getHeight() : string

Get comment height (CSS style, i.e. XXpx or YYpt)

Returns

string

setHeight()

setHeight(string  $value = '55.5pt') : \PHPExcel_Comment

Set comment height (CSS style, i.e. XXpx or YYpt)

Parameters

string $value

Returns

\PHPExcel_Comment

getMarginLeft()

getMarginLeft() : string

Get left margin (CSS style, i.e. XXpx or YYpt)

Returns

string

setMarginLeft()

setMarginLeft(string  $value = '59.25pt') : \PHPExcel_Comment

Set left margin (CSS style, i.e. XXpx or YYpt)

Parameters

string $value

Returns

\PHPExcel_Comment

getMarginTop()

getMarginTop() : string

Get top margin (CSS style, i.e. XXpx or YYpt)

Returns

string

setMarginTop()

setMarginTop(string  $value = '1.5pt') : \PHPExcel_Comment

Set top margin (CSS style, i.e. XXpx or YYpt)

Parameters

string $value

Returns

\PHPExcel_Comment

getVisible()

getVisible() : boolean

Is the comment visible by default?

Returns

boolean

setVisible()

setVisible(boolean  $value = false) : \PHPExcel_Comment

Set comment default visibility

Parameters

boolean $value

Returns

\PHPExcel_Comment

setAlignment()

setAlignment(string  $pValue = \PHPExcel_Style_Alignment::HORIZONTAL_GENERAL) : \PHPExcel_Comment

Set Alignment

Parameters

string $pValue

Returns

\PHPExcel_Comment

getAlignment()

getAlignment() : string

Get Alignment

Returns

string

getHashCode()

getHashCode() : string

Get hash code

Returns

string —

Hash code

__clone()

__clone() 

Implement PHP __clone to create a deep clone, not just a shallow copy.

__toString()

__toString() : string

Convert to string

Returns

string