BuildingCoder.CmdRemoveDwfLinks.Unpin C# (CSharp) Метод

Unpin() приватный Метод

Unpin all of the pinned elements in the list.
private Unpin ( List ids, Document doc ) : int
ids List
doc Document
Результат int
        int Unpin( List<ElementId> ids, Document doc )
        {
            int count = 0;

              foreach( ElementId id in ids )
              {
            Element e = doc.GetElement( id );
            if( e.Pinned )
            {
              e.Pinned = false;
              ++count;
            }
              }
              return count;
        }