Set TextColor of GoText with GoIconicNode object

Hi,

I have implemented the following class GUI_IconicNode derived from GoIconicNode with some other properties:
GUI_IconicNode : GoIconicNode
{
...
}
I have also implemented the following class GUI_RotatedText derived from GoText with angle property to place text on some angle:
GUI_RotatedText : GoText
{
...
}
Then I assigned object of GoRotatedText to Label property of GoIconicNode object as:
GUI_IconicNodeObj.Label = GUI_RotatedTextObj
Now the requiremnet is that when user click on GoIconicNodeObj, then text color of the associated GoRotatedTextObj should be changed from 'Black' to 'Red'.
I tried to do it as:
void objectGotSelection(object sender, GoSelectionEventArgs e)
{
...
GoObject[] objColl = this.Document.CopyArray();
foreach (GoObject objTemp in objColl) { Type objTempType = objTemp.GetType(); if (objTempType.Name == "GUI_RotatedText") { if (((GUI_IconicNode)oSelectedObj).Description == ((GUI_RotatedText)objTemp).Text) { ((GUI_RotatedText)objTemp).TextColor = Color.Red; break; } } }
}
But it's not working. Can you please provide me some hint in this regard?

Did you take our RotatedText, or implement your own?

Yes, I used your RotatedText.

Have you set a breakpoint at the .TextColor line to see if you are getting through those 2 “ifs”?