The answer to this SO question says that you can create an api by exposing methods, objects and .ect by setting their scope to public. http://stackoverflow.com/questions/630971/how-to-start-creating-an-application-api-in-net
One of the main things I want to expose is the text of a textbox. Would the best way to do this be to create a public static Text property that is updated by the textbox's textchanged event? Also what would a developer do in order to interact with this text property while my program is running? Would they add a reference to the program .exe in their program? Then would thier program have to be in the same directory as my exe?
Please help, I'm quite clueless here. Also was not sure how to word this question, feel free it edit if it is unclear.
--Edit--
I am working on text editor. Right now I am not completely sure about everything that I want other developers to be able to interact with. One thing that I am sure I want other developers to interact with is the textbox's text and a few labels which make up an "infobar".