Hello,
I know you cannot modify the line spacing used by a FormattedLinkLabel, but is there any way to determine what the spacing is that it's using? For a multiple line label, it definitely looks like it's based on the largest font in the line, and perhaps is related the the Ascent value of the font, but is there anything concrete that we could reference?
Thanks,
Sean.
Sean,
I don't see anything that would control this, but I do believe that you are correct that it performs the spacing based on the Ascent of the largest font. What is likely happening is that it is using the .NET Graphics class to perform measuring logic in addition to the actual rendering of the text (based on the TextRenderingMode of the control), though the former would be what is more relevant in terms of the positioning of the child elements. In order to change this, I think that the child elements would have to overlap each other (if you want smaller line spacing, for example), but to my knowledge this functionality is not available.
What do you need to know the line spacing for? Perhaps there is another way to accomplish what you're trying to do.
-Matt
Hi Matt,
It now seems that it's more than just the ascent. If I have a multi-line label, changing the size of one line changes the line spacing of the following line. We were at least hoping the line spacing is determined by whatever is on the line itself, not lines above! Perhaps it's using the ascent of the current line, and the descent of the line above?
We're trying to use this control in an application that requires the text on the control to be matched up position-wise with the same text (same font, size, etc.) in a Mac graphics app. The inability to determine what line spacing the control is using is making this impossible at the moment.
We're really hoping Infragistics can shed some concrete light on this.