Class ExcelDrawingAsType
Provides a simple way to type cast drawing object top its top level class.
Inheritance
System.Object
ExcelDrawingAsType
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 ExcelDrawingAsType
Properties
Chart
Declaration
public ExcelChartAsType Chart { get; }
Property Value
Type | Description |
---|---|
ExcelChartAsType |
Picture
Returns return the drawing as a picture/image. If this drawing is not a picture, null will be returned
Declaration
public ExcelPicture Picture { get; }
Property Value
Type | Description |
---|---|
ExcelPicture | The drawing as a picture |
Shape
Returns the drawing as a shape. If this drawing is not a shape, null will be returned
Declaration
public ExcelShape Shape { get; }
Property Value
Type | Description |
---|---|
ExcelShape | The drawing as a shape |
Methods
Type<T>()
Converts the drawing to it's top level or other nested drawing class.
Declaration
public T Type<T>()
where T : ExcelDrawing
Returns
Type | Description |
---|---|
T | The drawing as type T |
Type Parameters
Name | Description |
---|---|
T | The type of drawing. T must be inherited from ExcelDrawing |