I'm using a GoLabeledLink. I'm setting the MidLabel to a RotatedText object and setting MidLabelCentered to true. <?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
RotatedText midText = new RotatedText();
MidLabelCentered = true;
MidLabel = midText;
The text is correctly drawn on the GoLink and centered correctly (middle of the link). However, the stroke is drawn through the text. I'd like to center the text on the line, but not draw the line through the text. I addition I want to keep the GoText's background transparent. [I think this is the have my cake and eat it too scenario] :)
The only way I can think of to do this is to derive from GoStroke and add a Region property that I XOR with the Region of the rotated text in the paint method. Can you think of a better way to accomplish this?