Class ShapeCollection
  
  
  
  
    Inheritance
    System.Object
    ShapeCollection
      
   
  
  Assembly: DRIT.Spreadsheet.dll
  Syntax
  
    public class ShapeCollection : IEnumerable<AbstractShape>
   
  Fields
  
  
  
  duplicateShapesByName
  
  
  Declaration
  
    protected Dictionary<string, List<AbstractShape>> duplicateShapesByName
   
  Field Value
  
  
  
  shapesById
  
  
  Declaration
  
    protected Dictionary<int, AbstractShape> shapesById
   
  Field Value
  
  
  
  shapesByName
  
  
  Declaration
  
    protected Dictionary<string, AbstractShape> shapesByName
   
  Field Value
  
  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
  
  Returns
  
  
  
  
  GetConnector(Int32)
  
  
  Declaration
  
    public ConnectorShape GetConnector(int id)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        id | 
         | 
      
    
  
  Returns
  
  
  
  
  GetConnector(String)
  
  
  Declaration
  
    public ConnectorShape GetConnector(string name)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        name | 
         | 
      
    
  
  Returns
  
  
  
  
  GetEnumerator()
  
  
  Declaration
  
    public IEnumerator<AbstractShape> GetEnumerator()
   
  Returns
  
  
  
  
  GetGroupShape(String)
  
  
  Declaration
  
    public GroupShape GetGroupShape(string name)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        name | 
         | 
      
    
  
  Returns
  
  
  
  
  GetPicture(String)
  
  
  Declaration
  
    public PictureShape GetPicture(string name)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        name | 
         | 
      
    
  
  Returns
  
  
  
  
  GetShape(String)
  
  
  Declaration
  
    public Shape GetShape(string name)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        name | 
         | 
      
    
  
  Returns
  
  
  
  
  GetTextBox(String)
  
  
  Declaration
  
    public TextBoxShape GetTextBox(string name)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        name | 
         | 
      
    
  
  Returns
  
  
  
  
  OnRemove(AbstractShape)
  
  
  Declaration
  
    protected virtual void OnRemove(AbstractShape shape)
   
  Parameters
  
  
  
  
  Remove(AbstractShape)
  Remove the specified Shape.
 
  
  Declaration
  
    public void Remove(AbstractShape shape)
   
  Parameters
  
  
  
  
  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 | 
         |