SetItemText

Discussions about document viewing.
Post Reply
Jron
Posts: 2
Joined: Thu Nov 04, 2010 1:43 pm

SetItemText

Post by Jron » Thu Nov 11, 2010 10:17 pm

What is the method supposed to do? I thought it was to change the text underneath the thumnail.

I tried it with the following code but i cant' see any difference.

Code: Select all

if (ThumbnailHost.Child is ThumbnailEx)
            {
                ThumbnailEx ex = ThumbnailHost.Child as ThumbnailEx;

                if (ex != null)
                {                    
                    ex.ThumbnailSize = new System.Drawing.Size(128, 128);
                    ex.Visible = true;
                    ex.LoadFromGdViewer(viewer);

                    for (int i = 0; i < ex.ItemCount; i++)
                    {
                        ex.SetItemText(i, "Pagina " + System.Convert.ToString(i) );
                    }                    
                }
            }
}

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: SetItemText

Post by Loïc » Fri Nov 12, 2010 11:57 am

Hi Ron,

Your code is supposed to work... We have a bug related to asynchronous loading in the ThumbnailEx control. This problem will be solved in GdPicture.NET 7.3.

Sorry for the inconvenient !

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests