Syncfusion.XlsIO.Base
Example 


ShapeType Property

Shape type.
Syntax
'Declaration
 
ReadOnly Property ShapeType As ExcelShapeType
'Usage
 
Dim instance As IShape
Dim value As ExcelShapeType
 
value = instance.ShapeType
ExcelShapeType ShapeType {get;}
Example
The following code illustrates how to access ShapeType property.
using Syncfusion.XlsIO;
using System;
            
class Program
{
    static void Main()
    {
        using (ExcelEngine excelEngine = new ExcelEngine())
        {
            //Create worksheet
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet worksheet = workbook.Worksheets[0];
            
            //Add shape
            IShape shape = worksheet.Shapes.AddAutoShapes(AutoShapeType.Rectangle, 2, 2, 40, 100);
            
            //Get shape type
            Console.WriteLine(shape.ShapeType);
            
            //Save and dispose
            workbook.SaveAs("Shapes.xlsx");
            workbook.Close();
            Console.ReadKey();
        }
    }
}
//Output will be
//AutoShape
AssemblyVersion

Syncfusion.XlsIO.Base: 17.1460.0.47

See Also