Search code examples
c#coreldraw

How can I tell if a shape is combined or not?


Given a Shape object, how can I tell if that shape is a combination of shapes or not?

I could use BreakApartEx() and get a ShapeRange which I could count, but I would rather not break a part the shape if possible.

I am using Corel Draw X7.


Solution

  • How about creating a duplicate shape, then use BreakApartEX, and shaperange.count? Then delete it. So, you still maintain the original shape.