SelectionService
Manages the selection of diagram entities.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class SelectionService : ISelectionService<IDiagramItem>
Inheritance: objectSelectionService
Implements:
Constructors
Initializes a new instance of the SelectionService class.
public SelectionService()
Properties
SelectedConnections
IEnumerable<IConnection>
Gets the selected connections.
public IEnumerable<IConnection> SelectedConnections { get; }
The selected connections.
Implements:
SelectedItems
IEnumerable<IDiagramItem>
Gets the currently selected diagram entities.
public IEnumerable<IDiagramItem> SelectedItems { get; }
Implements:
Gets the selected items count.
public int SelectedItemsCount { get; }
Implements:
SelectedShapes
IEnumerable<IShape>
Gets the currently selected diagram shapes.
public IEnumerable<IShape> SelectedShapes { get; }
Implements:
Methods
Clears the selection.
public virtual void ClearSelection()
Implements:
Deselects the item.
public virtual void DeselectItem(IDiagramItem item)
The item.
Implements:
Deselects the items.
public virtual void DeselectItems(IEnumerable<IDiagramItem> items)
The items.
Implements:
Determines whether [is single selected] [the specified item].
public bool IsSingleSelected(IDiagramItem item)
The item.
Returns:true if [is single selected] [the specified item]; otherwise, false.
Implements:
Selects the given item.
public virtual void SelectItem(IDiagramItem item, bool addToExistingSelection = false)
The item.
addToExistingSelectionboolIf set to true the current selection will be expanded with the given items.
Implements:
Selects the given items.
public virtual void SelectItems(IEnumerable<IDiagramItem> items, bool addToExistingSelection = false)
The items to select.
addToExistingSelectionboolIf set to true the current selection will be expanded with the given items.
Implements:
Selects the next item in an ordered collection based on the current selected items.
public void SelectNextItem(IList<IDiagramItem> orderedItems, bool moveBackward)
Implements:
Syncs the selected items.
public bool SyncSelectedItems(IDiagramItem model)
The model.
Returns:True if item is added or removed from selectedItems, otherwise false.
Implements:
Events
Occurs when [selection starts].
public event EventHandler<DiagramSelectionChangedEventArgs> PreviewSelectionChanged
Implements:
Occurs when [selection ended].
public event EventHandler<DiagramSelectionChangedEventArgs> SelectionChanged
Implements: