Nevron Forum

NDiagramElementCollection.GetChildByName is case sensitive

https://www.nevron.com/Forum/Topic6965.aspx

By Kevin Harrison 1 - Tuesday, September 18, 2012

Please can we have an overload that is case insensitive?

I am using this to find a region on a map and zoom into it, but it's a bit hit and miss (and confusing) for the user that they have to know the exact casing of the name they're searching for.

Thanks

Kevin

By Nevron Support - Monday, October 1, 2012

Hi,

The GetChildByName method is marked as virtual, so you can override it in order to make it work with case insensitive names. If you are using the automatic map importer, you won't be able to use a custom class, so it's best to write your own GetChildByName method that loops through all elements in the diagram element collection and checks their names case insensitively.