'Extracting visible sheet in Revit using C#

Is there a way to only select Sheet Lists in a Schedule?

Like in this picture, but instead of those fields, I want only the existent Sheet Lists in the project.

Creating a Sheet List, but I want all the Sheet Lists in the fields.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source