Class ExcelChartDrawings¶
Namespace: OfficeOpenXml.Drawing
Assembly: EPPlus.dll
Collection of drawings inside a chart
Inheritance¶
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
Property Value¶
DrawingXml¶
A reference to the drawing xml document
Property Value¶
XmlDocument
this[int]¶
Returns the drawing at the specified position.
Property Value¶
this[string]¶
Returns the drawing matching the specified name
Property Value¶
Methods¶
AddPicture(string, string)¶
Adds a picture to the chart
Parameters¶
Name string
The name of the shape
ImagePath string
The path to the image file.
Returns¶
The shape
AddPicture(string, string, ExcelHyperLink)¶
Adds a picture to the chart
Parameters¶
Name string
The name of the shape
ImagePath string
The path to the image file.
HyperLink ExcelHyperLink
A hyperlink for the shape
Returns¶
The shape
AddPicture(string, FileInfo)¶
Adds a picture to the chart
Parameters¶
Name string
The name of the shape
ImageFile FileInfo
The image file.
Returns¶
The shape
AddPicture(string, FileInfo, Uri)¶
Adds a picture to the chart
Parameters¶
Name string
The name of the shape
ImageFile FileInfo
The image file.
HyperLink Uri
A hyperlink for the shape
Returns¶
The shape
AddPicture(string, Stream)¶
Adds a picture to the chart
Parameters¶
Name string
The name of the shape
ImageStream Stream
The stream containing image file.
Returns¶
The shape
AddPicture(string, Stream, Uri)¶
Adds a picture to the chart
Parameters¶
Name string
The name of the shape
ImageStream Stream
The stream containing image file.
HyperLink Uri
A hyperlink for the shape
Returns¶
The shape
AddShape(string, eShapeStyle)¶
Adds a shape to the chart
Parameters¶
Name string
The name of the shape
Style eShapeStyle
The type of shape
Returns¶
The shape
Dispose()¶
Disposes the drawings collection and all drawings in it.
GetEnumerator()¶
Returns an Enumerator for the drawings in the chart
Returns¶
Remove(int)¶
Removes a drawing.
Parameters¶
Index int
The index of the drawing
Remove(ExcelDrawing)¶
Removes a drawing.
Parameters¶
Drawing ExcelDrawing
The drawing
Remove(string)¶
Removes a drawing.
Parameters¶
Name string
The name of the drawing