using System; using System.Collections.Generic; using System.Text; using FastReport.Utils; namespace FastReport { /// /// Holds the list of selected objects of type. Used by the /// . /// public class SelectedObjectCollection : ObjectCollection { /// /// Gets a value indicating that report page is selected. /// public bool IsPageSelected { get { return Count == 1 && this[0] is PageBase; } } /// /// Gets a value indicating that report is selected. /// public bool IsReportSelected { get { return Count == 1 && this[0] is Report; } } } }