[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Design.Selection

Selection Class

Represents a collection of selected components within the ActiveReports designer environment.

Inheritance
Selection
Namespace: GrapeCity.ActiveReports.Design
Assembly: MESCIUS.ActiveReports.Design.Win.dll
Syntax
public class Selection : ICollection, IEnumerable
Remarks

This class provides functionality to manage the selection of components in the designer. It allows querying the current selection, changing the selection, and listening for selection changes. The selection can include controls, sections, or other design-time components. This class is particularly useful for extending the designer's functionality or integrating with other parts of the application that need to react to changes in the designer's selection state.

Constructors

Name Description
Selection(ISelectionService)

Constructs a new Selection instance using the provided selection service.

Properties

Name Description
Count

Gets the number of components currently selected in the designer.

IsSynchronized

Gets a value indicating whether access to the collection is synchronized (thread safe).

this[int]

Retrieves the selected component at the specified index within the collection.

SyncRoot

Gets an object that can be used to synchronize access to the collection.

Methods

Name Description
Clear()

Clears all selections within the designer.

CopyTo(Array, int)

Copies the elements of the current selection into an array, starting at a particular array index.

GetEnumerator()

Returns an enumerator that iterates through the collection of selected components.

Select(object)

Replaces the current selection with the specified object.

Select(object, bool)

Adds the specified object to the current selection or makes it the primary selection.