GoTextNode, Background Grid


#1

Could you please tell me how I can do the following;

  • I have set the Background of my GoTextNode to a GoRoundedRectangle. I want this rectangle to be bigger, effectively giving more padding between the text and the border.
  • How do I get my GoTextNodes to center themselves automatically on the grid? They only seem to do left alignment. I have managed to get center-alignment with GoBasicNodes but not with GoTextNodes.
Many thanks, Alex Holland
Questionmark Computing Ltd

#2

Set the GoTextNode.TopLeftMargin and BottomRightMargin properties.
Override Location as follows:
public override PointF Location {
get { return this.Center; }
set { this.Center = value; }
}


#3

Thank you very much!