[]
Gets a value representing the collection of objects currently selected in the designer.
[Browsable(false)]
public Selection Selection { get; }
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. |
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.
designer.SelectionChanged += () {
removeButton.Enabled =
designer.Selection.OfType<ReportItem>().Count() > 0
|| designer.Selection.OfType<ARControl>().Count() > 0;
}