I'm working on an addin that create shapes to represent electrical connectors. The connectors themselves are containers (I simply added the user row "msvStructureType" with a value of "container" to an existing shape). I am pleased with how this works but sometimes these connectors need to be mirrors on the vertical axis depending on which directions wires are coming into it.
Before going the container route, when they were simple group shapes, it was simple to flip them with code like...
Shape.FlipHorizontal()
all the relationships between the connector shape and its contents, including text justification remained intact.
now, with containers, that code seems to have either no effect or a bad effect. The only way I have been able to get the desired results is to remove the container property from the shape, flip it, then make it a container again. This seems like a bit of a kludge. Anyone have any suggestions?
Thanks