Skip to content

Class ExcelDrawingsGroup

Namespace: OfficeOpenXml.Drawing
Assembly: EPPlus.dll

A collection of child drawings to a group drawing

public class ExcelDrawingsGroup : IEnumerable<ExcelDrawing>, IEnumerable, IDisposable

Inheritance

object ← ExcelDrawingsGroup

Implements

IDisposable
IEnumerable
IEnumerable<ExcelDrawing>

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Properties

Count

Number of items in the collection

public int Count { get; }

Property Value

int

this[int]

Returns the drawing at the specified position.

public ExcelDrawing this[int PositionID] { get; }

Property Value

ExcelDrawing

this[string]

Returns the drawing matching the specified name

public ExcelDrawing this[string Name] { get; }

Property Value

ExcelDrawing

Methods

Add(ExcelDrawing)

Adds a drawing to the group

public void Add(ExcelDrawing drawing)

Parameters

drawing ExcelDrawing

Clear()

Removes all children drawings from the group.

public void Clear()

Dispose()

Disposes the class

public void Dispose()

GetEnumerator()

Gets the enumerator for the collection

public IEnumerator<ExcelDrawing> GetEnumerator()

Returns

IEnumerator<ExcelDrawing>

The enumerator

Remove(ExcelDrawing)

Removes the ExcelDrawing from the group

public void Remove(ExcelDrawing drawing)

Parameters

drawing ExcelDrawing

The drawing to remove