Show / Hide Table of Contents

Class ShapeCollection

Inheritance
System.Object
ShapeCollection
WorksheetShapeCollection
Namespace: DRIT.Spreadsheet.Drawing
Assembly: DRIT.Spreadsheet.dll
Syntax
public class ShapeCollection : IEnumerable<AbstractShape>

Fields

duplicateShapesByName

Declaration
protected Dictionary<string, List<AbstractShape>> duplicateShapesByName
Field Value
Type Description
Dictionary<System.String, List<AbstractShape>>

shapesById

Declaration
protected Dictionary<int, AbstractShape> shapesById
Field Value
Type Description
Dictionary<System.Int32, AbstractShape>

shapesByName

Declaration
protected Dictionary<string, AbstractShape> shapesByName
Field Value
Type Description
Dictionary<System.String, AbstractShape>

Properties

Count

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32

Methods

AddShape(ShapeType, Int32, String, Position, Size)

Declaration
public Shape AddShape(ShapeType shapeType, int id, string name, Position position, Size size)
Parameters
Type Name Description
ShapeType shapeType
System.Int32 id
System.String name
Position position
Size size
Returns
Type Description
Shape

GetConnector(Int32)

Declaration
public ConnectorShape GetConnector(int id)
Parameters
Type Name Description
System.Int32 id
Returns
Type Description
ConnectorShape

GetConnector(String)

Declaration
public ConnectorShape GetConnector(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
ConnectorShape

GetEnumerator()

Declaration
public IEnumerator<AbstractShape> GetEnumerator()
Returns
Type Description
IEnumerator<AbstractShape>

GetGroupShape(String)

Declaration
public GroupShape GetGroupShape(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
GroupShape

GetPicture(String)

Declaration
public PictureShape GetPicture(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
PictureShape

GetShape(String)

Declaration
public Shape GetShape(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
Shape

GetTextBox(String)

Declaration
public TextBoxShape GetTextBox(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
TextBoxShape

OnRemove(AbstractShape)

Declaration
protected virtual void OnRemove(AbstractShape shape)
Parameters
Type Name Description
AbstractShape shape

Remove(AbstractShape)

Remove the specified Shape.

Declaration
public void Remove(AbstractShape shape)
Parameters
Type Name Description
AbstractShape shape

RemoveById(Int32)

Remove the shape with the specified id.

Declaration
public void RemoveById(int id)
Parameters
Type Name Description
System.Int32 id

RemoveByName(String)

Remove the shape with the specified name.

Declaration
public void RemoveByName(string name)
Parameters
Type Name Description
System.String name
Back to top Generated by DocFX