Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IGroupShape

    Show / Hide Table of Contents

    Interface IGroupShape

    Represents the group shape in a worksheet.

    Inherited Members
    IShape.Remove()
    IShape.Scale(Int32, Int32)
    IShape.Height
    IShape.Id
    IShape.Left
    IShape.Name
    IShape.Top
    IShape.Width
    IShape.ShapeType
    IShape.IsShapeVisible
    IShape.AlternativeText
    IShape.IsMoveWithCell
    IShape.IsSizeWithCell
    IShape.Fill
    IShape.Line
    IShape.OnAction
    IShape.Shadow
    IShape.ThreeD
    IShape.ShapeRotation
    IShape.TextFrame
    IShape.Hyperlink
    IParentApplication.Application
    IParentApplication.Parent
    Namespace: Syncfusion.XlsIO
    Assembly: Syncfusion.XlsIO.Portable.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 Description
    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 - 2023 Syncfusion Inc. All Rights Reserved