Select even hidden objects

Hello, I don’t have the code right here to show as an example but I think I can explain what’s the problem without showing the code.
I was trying to write a C# code that can automatically hide/show objects in Rhino.
The code worked perfectly when hiding objects, but nothing comes back when showing the objects.
The reason is that Rhino.RhinoDoc.ActiveDoc.Objects gives only the objects that are not hidden.
Is there a way to get a list of all the objects regardless of hidden/shown?

Thank you.

Looks like this post may help you:

// Rolf