Say I have a very basic text editor, like the one described here:
http://aclacl.brinkster.net/MFC/ch12e.htm
This text editor is able to create, save, and open a file that contains the following formatted text:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Now imagine that the text in italics is UNDERLINED as well.
Is there a way to get each instance of underlined text in the above passage as Strings?
Also, is there a method available to get any text that is currently selected as a String?