Table of Contents

Class PrstGeomShapeCollection

Namespace
Spire.Xls.Core.Spreadsheet.Collections
Assembly
Spire.XLS.dll
public class PrstGeomShapeCollection : CollectionExtended<IPrstGeomShape>, IList<IPrstGeomShape>, ICollection<IPrstGeomShape>, IEnumerable<IPrstGeomShape>, IEnumerable, IExcelApplication, ICloneParent, IPrstGeomShapes
Inheritance
PrstGeomShapeCollection
Implements
Inherited Members

Properties

this[PrstGeomShapeType]

public IPrstGeomShape[] this[PrstGeomShapeType shapeType] { get; }

Parameters

shapeType PrstGeomShapeType

Property Value

IPrstGeomShape[]

this[int]

public IPrstGeomShape this[int index] { get; }

Parameters

index int

Property Value

IPrstGeomShape

this[string]

public IPrstGeomShape this[string name] { get; }

Parameters

name string

Property Value

IPrstGeomShape

Methods

AddCopy(IPrstGeomShape)

public void AddCopy(IPrstGeomShape source)

Parameters

source IPrstGeomShape

AddNotPrimitiveShape(int, int, int, int)

Add a NotPrimitive shape to prstgeomshape collection;

public IGeomPathShape AddNotPrimitiveShape(int row, int column, int width, int height)

Parameters

row int

shape's first row number in worksheet

column int

shape's first column number in worksheet

width int

shape's width, in unit of pixel.

height int

shape's height, in unit of pixel.

Returns

IGeomPathShape

AddPrstGeomShape(int, int, int, int, PrstGeomShapeType)

Add a preset shape to prstgeomshape collection;

public IPrstGeomShape AddPrstGeomShape(int row, int column, int width, int height, PrstGeomShapeType shapeType)

Parameters

row int

shape's first row number in worksheet

column int

shape's first column number in worksheet

width int

shape's width, in unit of pixel.

height int

shape's height, in unit of pixel.

shapeType PrstGeomShapeType

shape's type

Returns

IPrstGeomShape

Clear()

public void Clear()

Remove(IShape)

Remove a shape in collection;

public void Remove(IShape shape)

Parameters

shape IShape

the shape to remove