Group
extends AbstractShape
in package
implements
ShapeContainerInterface
uses
ShapeCollection
Abstract shape.
Table of Contents
Interfaces
- ShapeContainerInterface
- PhpOffice\PhpPresentation\ShapeContainerInterface.
Properties
- $container : null|ShapeContainerInterface
- Container.
- $extentX : int
- Extent X.
- $extentY : int
- Extent Y.
- $height : int
- Height.
- $hyperlink : null|Hyperlink
- $name : string
- Name.
- $offsetX : int
- Offset X.
- $offsetY : int
- Offset Y.
- $placeholder : null|Placeholder
- $rotation : int
- Rotation.
- $shadow : null|Shadow
- Shadow.
- $shapeCollection : array<int, AbstractShape>
- Collection of shapes.
- $width : int
- Width.
- $border : Border
- Border.
- $fill : null|Fill
- $hashIndex : int
- Hash index.
Methods
- __clone() : mixed
- Magic Method : clone.
- __construct() : mixed
- Create a new self.
- addShape() : static
- createChartShape() : Chart
- Create chart shape.
- createDrawingShape() : File
- Create drawing shape.
- createLineShape() : Line
- Create line shape.
- createRichTextShape() : RichText
- Create rich text shape.
- createTableShape() : Table
- Create table shape.
- getBorder() : Border
- getContainer() : ShapeContainerInterface|null
- Get Container, Slide or Group.
- getExtentX() : int
- Get X Extent.
- getExtentY() : int
- Get Y Extent.
- getFill() : Fill|null
- getHashCode() : string
- Get hash code.
- getHashIndex() : null|int
- Get hash index.
- getHeight() : int
- Get Height.
- getHyperlink() : Hyperlink
- Get Hyperlink.
- getName() : string
- Get Name.
- getOffsetX() : int
- Get X Offset.
- getOffsetY() : int
- Get Y Offset.
- getPlaceholder() : Placeholder|null
- getRotation() : int
- Get Rotation.
- getShadow() : Shadow|null
- getShapeCollection() : array<int, AbstractShape>
- Get collection of shapes.
- getWidth() : int
- Get Width.
- hasHyperlink() : bool
- Has Hyperlink?
- isPlaceholder() : bool
- searchShapes() : array<int, AbstractShape>
- Search into collection of shapes for a name or/and a type.
- setContainer() : $this
- Set Container, Slide or Group.
- setFill() : self
- setHashIndex() : $this
- Set hash index.
- setHeight() : $this
- Ignores setting the height, preserving the default behavior.
- setHyperlink() : self
- Set Hyperlink.
- setName() : static
- Set Name.
- setOffsetX() : $this
- Ignores setting the X Offset, preserving the default behavior.
- setOffsetY() : $this
- Ignores setting the Y Offset, preserving the default behavior.
- setPlaceHolder() : self
- setRotation() : $this
- Set Rotation.
- setShadow() : $this
- setShapeCollection() : self
- Get collection of shapes.
- setWidth() : self
- Ignores setting the width, preserving the default behavior.
- setWidthAndHeight() : self
- Set width and height with proportional resize.
- unsetShape() : static
Properties
$container
Container.
protected
null|ShapeContainerInterface
$container
$extentX
Extent X.
protected
int
$extentX
$extentY
Extent Y.
protected
int
$extentY
$height
Height.
protected
int
$height
$hyperlink
protected
null|Hyperlink
$hyperlink
$name
Name.
protected
string
$name
= ''
$offsetX
Offset X.
protected
int
$offsetX
$offsetY
Offset Y.
protected
int
$offsetY
$placeholder
protected
null|Placeholder
$placeholder
$rotation
Rotation.
protected
int
$rotation
$shadow
Shadow.
protected
null|Shadow
$shadow
$shapeCollection
Collection of shapes.
protected
array<int, AbstractShape>
$shapeCollection
= []
$width
Width.
protected
int
$width
$border
Border.
private
Border
$border
$fill
private
null|Fill
$fill
$hashIndex
Hash index.
private
int
$hashIndex
Methods
__clone()
Magic Method : clone.
public
__clone() : mixed
__construct()
Create a new self.
public
__construct() : mixed
addShape()
public
addShape(AbstractShape $shape) : static
Parameters
- $shape : AbstractShape
Return values
staticcreateChartShape()
Create chart shape.
public
createChartShape() : Chart
Return values
ChartcreateDrawingShape()
Create drawing shape.
public
createDrawingShape() : File
Return values
FilecreateLineShape()
Create line shape.
public
createLineShape(int $fromX, int $fromY, int $toX, int $toY) : Line
Parameters
- $fromX : int
-
Starting point x offset
- $fromY : int
-
Starting point y offset
- $toX : int
-
Ending point x offset
- $toY : int
-
Ending point y offset
Return values
LinecreateRichTextShape()
Create rich text shape.
public
createRichTextShape() : RichText
Return values
RichTextcreateTableShape()
Create table shape.
public
createTableShape([int $columns = 1 ]) : Table
Parameters
- $columns : int = 1
-
Number of columns
Return values
TablegetBorder()
public
getBorder() : Border
Return values
BordergetContainer()
Get Container, Slide or Group.
public
getContainer() : ShapeContainerInterface|null
Return values
ShapeContainerInterface|nullgetExtentX()
Get X Extent.
public
getExtentX() : int
Return values
intgetExtentY()
Get Y Extent.
public
getExtentY() : int
Return values
intgetFill()
public
getFill() : Fill|null
Return values
Fill|nullgetHashCode()
Get hash code.
public
getHashCode() : string
Return values
string —Hash code
getHashIndex()
Get hash index.
public
getHashIndex() : null|int
Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
Return values
null|int —Hash index
getHeight()
Get Height.
public
getHeight() : int
Return values
intgetHyperlink()
Get Hyperlink.
public
getHyperlink() : Hyperlink
Return values
HyperlinkgetName()
Get Name.
public
getName() : string
Return values
stringgetOffsetX()
Get X Offset.
public
getOffsetX() : int
Return values
intgetOffsetY()
Get Y Offset.
public
getOffsetY() : int
Return values
intgetPlaceholder()
public
getPlaceholder() : Placeholder|null
Return values
Placeholder|nullgetRotation()
Get Rotation.
public
getRotation() : int
Return values
intgetShadow()
public
getShadow() : Shadow|null
Return values
Shadow|nullgetShapeCollection()
Get collection of shapes.
public
getShapeCollection() : array<int, AbstractShape>
Return values
array<int, AbstractShape>getWidth()
Get Width.
public
getWidth() : int
Return values
inthasHyperlink()
Has Hyperlink?
public
hasHyperlink() : bool
Return values
boolisPlaceholder()
public
isPlaceholder() : bool
Return values
boolsearchShapes()
Search into collection of shapes for a name or/and a type.
public
searchShapes([string|null $name = null ][, string|null $type = null ]) : array<int, AbstractShape>
Parameters
- $name : string|null = null
- $type : string|null = null
Return values
array<int, AbstractShape>setContainer()
Set Container, Slide or Group.
public
setContainer([ShapeContainerInterface|null $pValue = null ][, bool $pOverrideOld = false ]) : $this
Parameters
- $pValue : ShapeContainerInterface|null = null
- $pOverrideOld : bool = false
-
If a Slide has already been assigned, overwrite it and remove image from old Slide?
Return values
$thissetFill()
public
setFill([Fill|null $pValue = null ]) : self
Parameters
- $pValue : Fill|null = null
Return values
selfsetHashIndex()
Set hash index.
public
setHashIndex(int $value) : $this
Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
Parameters
- $value : int
-
Hash index
Return values
$thissetHeight()
Ignores setting the height, preserving the default behavior.
public
setHeight([int $pValue = 0 ]) : $this
Parameters
- $pValue : int = 0
Return values
$thissetHyperlink()
Set Hyperlink.
public
setHyperlink([Hyperlink|null $pHyperlink = null ]) : self
Parameters
- $pHyperlink : Hyperlink|null = null
Return values
selfsetName()
Set Name.
public
setName([string $pValue = '' ]) : static
Parameters
- $pValue : string = ''
Return values
staticsetOffsetX()
Ignores setting the X Offset, preserving the default behavior.
public
setOffsetX([int $pValue = 0 ]) : $this
Parameters
- $pValue : int = 0
Return values
$thissetOffsetY()
Ignores setting the Y Offset, preserving the default behavior.
public
setOffsetY([int $pValue = 0 ]) : $this
Parameters
- $pValue : int = 0
Return values
$thissetPlaceHolder()
public
setPlaceHolder(Placeholder $placeholder) : self
Parameters
- $placeholder : Placeholder
Return values
selfsetRotation()
Set Rotation.
public
setRotation([int $pValue = 0 ]) : $this
Parameters
- $pValue : int = 0
Return values
$thissetShadow()
public
setShadow([Shadow|null $pValue = null ]) : $this
Parameters
- $pValue : Shadow|null = null
Return values
$thissetShapeCollection()
Get collection of shapes.
public
setShapeCollection([array<int, AbstractShape> $shapeCollection = [] ]) : self
Parameters
- $shapeCollection : array<int, AbstractShape> = []
Return values
selfsetWidth()
Ignores setting the width, preserving the default behavior.
public
setWidth([int $pValue = 0 ]) : self
Parameters
- $pValue : int = 0
Return values
selfsetWidthAndHeight()
Set width and height with proportional resize.
public
setWidthAndHeight([int $width = 0 ][, int $height = 0 ]) : self
Parameters
- $width : int = 0
- $height : int = 0
Return values
selfunsetShape()
public
unsetShape(int $key) : static
Parameters
- $key : int