In Javascript I can access the page’s stylesheet information with the following command
Example: document.styleSheets.length
However in Script# I am unable to make the same call (or similiar), i.e. there is no property for stylesheet under Document.
Q: How can I access the document’s stylesheet information in Script Sharp ?
Thanks in advance
- Rory
Do you mean you don’t see StyleSheets come up in the intellisense list after you type ‘Document.’ ? That doesn’t mean you can’t get it to work since Script# is just there to emit JavaScript.
Unless you want to go to the work of adding it to Script# yourself (on gitHub), you will probably need to add the script using Script.Literal.