How to know if a element is in a cell

I'm using GetSelectedElements to enumerate a selectionset. I'm only interested in Lines, Linestrings and Arcs, not lines included in cells (AnnotationCells)

How can I identify elements in cells and exclude them while looping through the selectionset?

Parents Reply Children