Is it possible to style part of a node's text differently than the rest of the text in that node?
In particular I need to bold a portion of the text in a node. Something like: "Name: John Smith"
I know it's a long shot, but I wanted to check. I couldn't find any information about this.
Thanks!Jim Honeycutt
Hi Jim,
You could do this with an Editor. What you would have to do is place an UltraFormattedLinkLabel control on the form and assign the EditorControl property of the node to this control. You might want to assign the EditorControl property of the Override if you need to affect multiple nodes.
Anyway, then what you would have to do is set the Text property of the node to an XML string indicating the formatting. The easiest way to learn what the xml tags are is to go to the Value property of the UltraFormattedLinkLabel and click the ellipsis and use the editor there. You can edit the text and then switch tabs to see the XML that was created.
Wow, that's awesome! I'll try that out right now.
I'm guessing that if I do that, I won't see the node's appropriate Appearance values (like Override.ActiveNodeAppearance) reflected in the editor, and that I'll be responsible for applying all appropriate styling to it myself. I'll find out when I try this out.
Thanks for your help!
Jim Honeycutt
Just a follow up to anyone reading this thread...
When you use an UltraFormattedLinkLabel as the editor to apply mixed styling to a node's text, it does that on top of the appropriate Appearance style for the node.
This is exactly what it should do, so I am very happy! I was worried that the minute I started using an editor for styling the node's text, that that would override all the styling for the node and I would lose all the styled node appearance.
This is perfect.
Thanks,Jim Honeycutt