[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Design.Designer.Selection

Selection Property

Selection

Gets a value representing the collection of objects currently selected in the designer.

Declaration
[Browsable(false)]
public Selection Selection { get; }
Property Value
Type Description
Selection

A Selection object representing the current selection within the designer. This collection includes all report elements or components that the user has selected.

Remarks

This property is essential for operations that need to act on the user's selection, such as property editing, deletion, or manipulation of report elements. It provides a way to programmatically access and interact with the selected items in the designer.

Examples
designer.SelectionChanged += () {
	removeButton.Enabled = 
	designer.Selection.OfType<ReportItem>().Count() > 0
	|| designer.Selection.OfType<ARControl>().Count() > 0;
}