PHP Class PhpOffice\PhpPresentation\Shape\Group

Inheritance: extends PhpOffice\PhpPresentation\AbstractShape, implements PHPOffice\PhpPresentation\ShapeContainerInterface
显示文件 Open project: phpoffice/phppowerpoint Class Usage Examples

Protected Properties

Property Type Description
$extentX integer Extent X
$extentY integer Extent Y

Public Methods

Method Description
__construct ( )
addShape ( AbstractShape $shape ) : AbstractShape Add shape to slide
createChartShape ( ) : Chart Create chart shape
createDrawingShape ( ) : File Create drawing shape
createLineShape ( integer $fromX, integer $fromY, integer $toX, integer $toY ) : Line Create line shape
createRichTextShape ( ) : RichText Create rich text shape
createTableShape ( integer $columns = 1 ) : Table Create table shape
getExtentX ( ) : integer Get X Extent
getExtentY ( ) : integer Get Y Extent
getOffsetX ( ) : integer Get X Offset
getOffsetY ( ) : integer Get Y Offset
getShapeCollection ( ) : ArrayObject Get collection of shapes
setHeight ( integer $pValue ) : self Ignores setting the height, preserving the default behavior.
setOffsetX ( integer $pValue ) : self Ignores setting the X Offset, preserving the default behavior.
setOffsetY ( integer $pValue ) : self Ignores setting the Y Offset, preserving the default behavior.
setWidth ( integer $pValue ) : self Ignores setting the width, preserving the default behavior.

Method Details

__construct() public method

public __construct ( )

addShape() public method

Add shape to slide
public addShape ( AbstractShape $shape ) : AbstractShape
$shape PhpOffice\PhpPresentation\AbstractShape
return PhpOffice\PhpPresentation\AbstractShape

createChartShape() public method

Create chart shape
public createChartShape ( ) : Chart
return Chart

createDrawingShape() public method

Create drawing shape
public createDrawingShape ( ) : File
return PhpOffice\PhpPresentation\Shape\Drawing\File

createLineShape() public method

Create line shape
public createLineShape ( integer $fromX, integer $fromY, integer $toX, integer $toY ) : Line
$fromX integer Starting point x offset
$fromY integer Starting point y offset
$toX integer Ending point x offset
$toY integer Ending point y offset
return Line

createRichTextShape() public method

Create rich text shape
public createRichTextShape ( ) : RichText
return RichText

createTableShape() public method

Create table shape
public createTableShape ( integer $columns = 1 ) : Table
$columns integer Number of columns
return Table

getExtentX() public method

Get X Extent
public getExtentX ( ) : integer
return integer

getExtentY() public method

Get Y Extent
public getExtentY ( ) : integer
return integer

getOffsetX() public method

Get X Offset
public getOffsetX ( ) : integer
return integer

getOffsetY() public method

Get Y Offset
public getOffsetY ( ) : integer
return integer

getShapeCollection() public method

Get collection of shapes
public getShapeCollection ( ) : ArrayObject
return ArrayObject

setHeight() public method

Ignores setting the height, preserving the default behavior.
public setHeight ( integer $pValue ) : self
$pValue integer
return self

setOffsetX() public method

Ignores setting the X Offset, preserving the default behavior.
public setOffsetX ( integer $pValue ) : self
$pValue integer
return self

setOffsetY() public method

Ignores setting the Y Offset, preserving the default behavior.
public setOffsetY ( integer $pValue ) : self
$pValue integer
return self

setWidth() public method

Ignores setting the width, preserving the default behavior.
public setWidth ( integer $pValue ) : self
$pValue integer
return self

Property Details

$extentX protected_oe property

Extent X
protected int $extentX
return integer

$extentY protected_oe property

Extent Y
protected int $extentY
return integer