I want to create a button to control object manager.
The function is collapse/expand all my pages, layers and shapes.
How can I use C# to do it?
Been looking to do that ever since X4! When we jumped up to X7 they changed it. Used to be just a toggle switch. Now you have to click several times to switch between the two views. Haven't had any success though. I've tried coding a macro, piecing together bits and pieces of code etc.
Why, since you only have two choices anyway, can't it be a simple toggle on/off?
I know Ctrl + Click can collapse/expand all of page's layers and shapes.
Because I have a lot of pages,it wastes of time to collapse/expand step by step.
Thought maybe you were referring to this. Our files will have, at the most, 3 layers and 98% of the time only 1 page so I keep mine at "Current page, layers only". Rarely do I have to expand to see all but when I do....
Thank you very much.If I can't control object manager, it is an alternative.