Selection Property (Designer)
Returns the collection of selected objects.
'Declaration
Public ReadOnly Property Selection As Selection
Property Value
A
Selection object representing the current selection within the designer. This collection includes all report elements or components that the user has selected.
designer.SelectionChanged += () {
removeButton.Enabled =
designer.Selection.OfType<ReportItem>().Count() > 0
|| designer.Selection.OfType<ARControl>().Count() > 0;
}