Joined: 31 Mar 2006
|Posted: Fri Mar 31, 2006 12:50 pm Post subject: Having trouble with API documentation
I'm trying to create an OpenOffice.org Writer documnet from c#. I've successfully used the example code that comes with the SDK documentation to create a writer document, add text and change fonts, but I'm totally lost on where to get one piece of information.
All the example code to set font style, size etc. use the XPropertySet interface of XTextCursor. An example is:
xPropertySetCursor.setPropertyValue("CharColor", New uno.Any(65536))
My question is how do I find out the names of the properties? I don't know where to look in the SDK docs - do I need to look at the OpenOffice source code instead?
I've worked out some from this forum, like CharFontName, CharHeight, CharWidth - how do I find all the others?
I particularly want to define a couple of paragraph styles programatically, but I can settle for opening an existing document with the styles pre-defined if necessary.
Thanks in advance for any help,