BuildingCoder.CmdSetTagType.GetElementsOfType C# (CSharp) Метод

GetElementsOfType() статический приватный Метод

Return all elements of the requested class, i.e. System.Type, matching the given built-in category in the given document.
static private GetElementsOfType ( Document doc, Type type, BuiltInCategory bic ) : FilteredElementCollector
doc Document
type System.Type
bic BuiltInCategory
Результат FilteredElementCollector
        static FilteredElementCollector GetElementsOfType(
            Document doc,
            Type type,
            BuiltInCategory bic)
        {
            FilteredElementCollector collector
            = new FilteredElementCollector( doc );

              collector.OfCategory( bic );
              collector.OfClass( type );

              return collector;
        }