//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ /* */ namespace System.ComponentModel.Design { using System.Diagnostics; using System; using System.Collections; using System.ComponentModel; using Microsoft.Win32; /// /// /// Provides an interface for a designer to select components. /// /// [System.Runtime.InteropServices.ComVisible(true)] public interface ISelectionService { /// /// /// Gets the object that is currently the primary selection. /// /// object PrimarySelection { get; } /// /// /// Gets the count of selected objects. /// /// int SelectionCount { get; } /// /// /// Adds a event handler to the selection service. /// /// event EventHandler SelectionChanged; /// /// /// Adds an event handler to the selection service. /// /// event EventHandler SelectionChanging; /// /// Gets a value indicating whether the component is currently selected. /// bool GetComponentSelected(object component); /// /// /// Gets a collection of components that are currently part of the user's selection. /// /// ICollection GetSelectedComponents(); /// /// /// Sets the currently selected set of components. /// /// void SetSelectedComponents(ICollection components); /// /// /// Sets the currently selected set of components to those with the specified selection type within the specified array of components. /// /// void SetSelectedComponents(ICollection components, SelectionTypes selectionType); } }