Profile Picture

NDiagramElementCollection.GetChildByName is case sensitive

Posted By Kevin Harrison 12 Years Ago

NDiagramElementCollection.GetChildByName is case sensitive

Author
Message
Kevin Harrison
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 176, Visits: 1,865

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



Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic