I want to group AddShape() figures in EPPlus C#

Asked 1 years ago, Updated 1 years ago, 373 views

I am writing to ask you a question because I did not know how to use the Group method when I looked at the EPPlus website.
You can place the figures on the sheet by simply adding them to ws(WorkSheet) as follows, but I would like to group them together.

ExcelShape shape=ws.Drawings.AddShape($"AAA", eShapeStyle.Rect);

The EPPlus WorkSheet object has a method called Group(), but I don't know how to use it.
Can someone teach me?

c# eplus

2022-11-16 20:37

1 Answers

ExcelShape has the Group method and the argument is ExcelDrawing[] so
Maybe you can arrange the shapes you want to group and give them to them.(Not tried)
ExcelDrawing.Group (ExcelDrawing[])


2022-11-17 02:57

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.