Class ExcelDrawingsGroup
A collection of child drawings to a group drawing
Inheritance
System.Object
ExcelDrawingsGroup
Implements
System.Collections.Generic.IEnumerable<ExcelDrawing>
System.Collections.IEnumerable
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Drawing
Assembly: EPPlus.dll
Syntax
public class ExcelDrawingsGroup : IEnumerable<ExcelDrawing>, IEnumerable, IDisposable
Properties
Count
Number of items in the collection
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[Int32]
Returns the drawing at the specified position.
Declaration
public ExcelDrawing this[int PositionID] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | PositionID | The position of the drawing. 0-base |
Property Value
Type | Description |
---|---|
ExcelDrawing |
Item[String]
Returns the drawing matching the specified name
Declaration
public ExcelDrawing this[string Name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | Name | The name of the worksheet |
Property Value
Type | Description |
---|---|
ExcelDrawing |
Methods
Add(ExcelDrawing)
Adds a drawing to the group
Declaration
public void Add(ExcelDrawing drawing)
Parameters
Type | Name | Description |
---|---|---|
ExcelDrawing | drawing |
Clear()
Removes all children drawings from the group.
Declaration
public void Clear()
Dispose()
Disposes the class
Declaration
public void Dispose()
GetEnumerator()
Gets the enumerator for the collection
Declaration
public IEnumerator<ExcelDrawing> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<ExcelDrawing> | The enumerator |
Remove(ExcelDrawing)
Removes the ExcelDrawing from the group
Declaration
public void Remove(ExcelDrawing drawing)
Parameters
Type | Name | Description |
---|---|---|
ExcelDrawing | drawing | The drawing to remove |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IDisposable