List Areas in a GdViewer

Discussions about document viewing.
Post Reply
jloizagah
Posts: 21
Joined: Tue Mar 17, 2009 2:45 pm

List Areas in a GdViewer

Post by jloizagah » Mon Feb 12, 2018 1:25 pm

Hello. My question is quite simple. I add regions to a gdViewer and I name them "Titular_1", "Titular_2", "Name_1", "Name_2". I want to remove all regions started by "Titular_". Is there any way to list all the regions in s GdViewer1 in order to remove just certain areas?.

Best regards.

jloizagah
Posts: 21
Joined: Tue Mar 17, 2009 2:45 pm

Re: List Areas in a GdViewer

Post by jloizagah » Mon Feb 12, 2018 5:04 pm

Finally, I have found the answer:

for (int i = 1; i <= this.gdViewer1.RegionCount(); i++)
{
int idReg = this.gdViewer1.GetRegionID(i);
string name = this.gdViewer1.GetRegionName(idReg);
}

Not very intuitive but effective anyway....

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests