.Net Search and replace text in a map

I'm developping a .net function to generate map. I was wondering if there is a way to change text in an existing map? Something like a search and replace. It can be a Gx, tool or I could code it but I don't know how to do it.