Hello,
In ArcGIS Pro, there is an option in the legendElement from layout to display only legend items when at least one feature is displayed on the map extent (Only show features visible in the map extent).
Is there such an option in the SDK or should I loop through the MapFrame's layer, make a check and then remove the element from the legend.
Thanks.