I have a RectangleShape feature that the end-user can rotate using the EditOverlay. Here's my challenge:
1) grab or calculate the rotation of the RectangleShape when the end-user completes the rotation
2) draw the text at the same rotation when the feature is drawn.
A further challenge is that I must word-wrap the text to fit inside the RectangleShape.
I've customized the TextStyle class following the WordWrappedTextStyle online project. In the DrawCore override I call base.DrawCore to draw the feature and then call canvas.DrawText to draw the text using a bogus rotation to emulate the RectangleShape's rotation. Is this the right approach? Is there to draw the text inside the RectangleShape using GDI, rather than have to brute-force the word-wrapping as the sample shows?