Interface IGroupShape
Represents the group shape in a worksheet.
Inherited Members
Namespace: Syncfusion.XlsIO
Assembly: Syncfusion.XlsIO.UWP.dll
Syntax
public interface IGroupShape : IShape, IParentApplication
Properties
Items
Returns the array of individual shapes in the specified IGroupShape.
Declaration
IShape[] Items { get; }
Property Value
Type |
---|
IShape[] |
Examples
The following code illustrates how to get items from group shape.
using (ExcelEngine excelEngine = new ExcelEngine())
{
//Create worksheet
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
IWorkbook workbook = application.Workbooks.Open("GroupShapes.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
IShapes shapes = worksheet.Shapes;
IShape[] groupItems = (shapes[0] as IGroupShape).Items;
//Save and dispose
workbook.SaveAs("GroupShapes.xlsx");
workbook.Close();
}