menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IGroupShape - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IGroupShape

    Represents the group shape in a worksheet.

    Inherited Members
    IParentApplication.Application
    IParentApplication.Parent
    IShape.AlternativeText
    IShape.Fill
    IShape.Height
    IShape.HeightDouble
    IShape.Hyperlink
    IShape.Id
    IShape.IsMoveWithCell
    IShape.IsShapeVisible
    IShape.IsSizeWithCell
    IShape.Left
    IShape.LeftDouble
    IShape.Line
    IShape.Name
    IShape.OnAction
    IShape.Remove()
    IShape.Scale(Int32, Int32)
    IShape.Shadow
    IShape.ShapeRotation
    IShape.ShapeType
    IShape.TextFrame
    IShape.ThreeD
    IShape.Top
    IShape.TopDouble
    IShape.Width
    IShape.WidthDouble
    Namespace: Syncfusion.XlsIO
    Assembly: Syncfusion.XlsIO.Base.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();
            }
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved