List Areas in a GdViewer

Discussions about document viewing.
Post Reply
jloizagah
Posts: 29
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: 29
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....

Gabriela
Posts: 436
Joined: Wed Nov 22, 2017 9:52 am

Re: List Areas in a GdViewer

Post by Gabriela » Fri Feb 01, 2019 10:08 am

Hello,

Yes, you are right. Please find updated documentation pages including examples of usage for Highlighted Regions in GdViewer here:
https://www.gdpicture.com/guides/gdpicture/web ... nByID.html
https://www.gdpicture.com/guides/gdpicture/web ... yName.html

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest