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
An object that containing properties that type-casts the drawing to a chart.
Declaration
public ExcelChartAsType Chart { get; }
  Property Value
| Type | Description | 
|---|---|
| ExcelChartAsType | 
Control
Helps to cast drawings to controls. Use the properties of this class to cast to the various specific control types.
Declaration
public ExcelControlAsType Control { get; }
  Property Value
| Type | Description | 
|---|---|
| ExcelControlAsType | 
Picture
Returns 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  | 
      
Slicer
An object that containing properties that type-casts the drawing to a slicer.
Declaration
public ExcelSlicerAsType Slicer { get; }
  Property Value
| Type | Description | 
|---|---|
| ExcelSlicerAsType | 
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  |