Page 1 of 1

List Areas in a GdViewer

Posted: Mon Feb 12, 2018 1:25 pm
by jloizagah
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.

Re: List Areas in a GdViewer

Posted: Mon Feb 12, 2018 5:04 pm
by jloizagah
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....

Re: List Areas in a GdViewer

Posted: Fri Feb 01, 2019 10:08 am
by Gabriela
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