Hi, I am writing a macro, and I would like to determine if the current line where the cursor resides is a collapsed area or not. Can someone show me a way to do this?
Sure:
return false
Seriously though - the cursor can't reside in a collapsed region - you always see it. Put the cursor inside a method, then collapse the method, and the cursor jumps into the method definition. Uncollapse the method and the cursor stays in the definition.
Edit------------------
Reading your comment, it seems like there are some resourecs you can use, but nothing that fits exactly what you need. You could try using Edit.StopOutlining to turn off all collapsing, then run through the Macro. You could also take a look at the sample Macro "OutlineCode" which collapses code - and then try and change it to uncollapse code. There's also a MSDN article on that.
So a workable solution for me is to turn off outlining expansion, have the macro do its magic and then turn auto-outlining expansion back on. Thanks for the help!