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
this[int]
public IPrstGeomShape this[int index] { get; }
Parameters
index
int
Property Value
this[string]
public IPrstGeomShape this[string name] { get; }
Parameters
name
string
Property Value
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
intshape's first row number in worksheet
column
intshape's first column number in worksheet
width
intshape's width, in unit of pixel.
height
intshape's height, in unit of pixel.
Returns
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
intshape's first row number in worksheet
column
intshape's first column number in worksheet
width
intshape's width, in unit of pixel.
height
intshape's height, in unit of pixel.
shapeType
PrstGeomShapeTypeshape's type
Returns
Clear()
public void Clear()
Remove(IShape)
Remove a shape in collection;
public void Remove(IShape shape)
Parameters
shape
IShapethe shape to remove