Hi Jeremy!
Looks like I found the solution myself. I use the following code:
Public Function IsElementVisibleInView(View As View, el As Element) As Boolean
' Obtain the element's document
Dim doc As Document = el.Document
Dim elId As ElementId = el.Id
' Create a FilterRule that searches for an element matching the given Id
Dim idRule As FilterRule = ParameterFilterRuleFactory.CreateEqualsRule(New ElementId(BuiltInParameter.ID_PARAM), elId)
Dim idFilter = New ElementParameterFilter(idRule)
' Use an ElementCategoryFilter to speed up the search, as ElementParameterFilter Is a slow filter
Dim cat As Category = el.Category
Dim catFilter = New ElementCategoryFilter(cat.Id)
' Use the constructor of FilteredElementCollector that accepts a view id as a parameter to only search that view
' Also use the WhereElementIsNotElementType filter to eliminate element types
Dim collector As FilteredElementCollector = New FilteredElementCollector(doc, View.Id).WhereElementIsNotElementType().WherePasses(catFilter).WherePasses(idFilter)
' If the collector contains any items, then we know that the element Is visible in the given view
Return collector.Any()
End Function