Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
765
adding a tooltip to a text title
posted

Hi

I have a PDF report with a header title in the first section.

ISectionHeader header = section.AddHeader();

header.Repeat = false;

IText headerText = header.AddText(0, PAGE_HEADER_TOP_MARGIN);

headerText.Alignment = TextAlignment.Center;

headerText.Style.Font.Size = PAGE_HEADER_FONT_SIZE;

headerText.AddContent(m_documentTitle);

 

The problem is that if the title is too long you cant see all the title becase I allocate in advance only one line of text and then comes an image.

 I want to cut the title if it extends one full line , add an elipsis "..." to the end and add a tooltip with the full title name when hovering over the title.

I think I can handle the cutting but I didnt see any way to add a tooltip to a text.

Can you please help

Thanks.

 

  • 469350
    Offline posted

    I'm not aware of any tooltip support in PDF documents in general. But I am certain that there is no support for tooltips in the Infragistics Documents engine.