ISelectionService<T>
The service supporting the selection process of diagram items.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Type Parameters:
T
The type of Selection service.
Syntax:
public interface ISelectionService<T>
Derived Classes:
Properties
Gets the selected connections.
IEnumerable<IConnection> SelectedConnections { get; }
The selected connections.
Gets the selected items.
IEnumerable<T> SelectedItems { get; }
Gets the selected items count.
int SelectedItemsCount { get; }
Gets the currently selected diagram shapes.
IEnumerable<IShape> SelectedShapes { get; }
Methods
Clears the selection.
void ClearSelection()
Deselects the item.
void DeselectItem(T item)
The item.
Deselects the items.
Determines whether [is single selected] [the specified item].
bool IsSingleSelected(T item)
The item.
Returns:true if [is single selected] [the specified item]; otherwise, false.
Selects the item.
void SelectItem(T item, bool addToExistingSelection = false)
The item.
addToExistingSelectionboolIf set to true [add to existing selection].
Selects the items.
void SelectItems(IEnumerable<T> items, bool addToExistingSelection = false)
The items.
addToExistingSelectionboolThe add to existing selection flag.
Syncs the selected items.
bool SyncSelectedItems(T model)
The model.
Returns:True if item is added or removed from selectedItems, otherwise false.
Events
Occurs when [selection starts].
event EventHandler<DiagramSelectionChangedEventArgs> PreviewSelectionChanged
Occurs when [selection ended].
event EventHandler<DiagramSelectionChangedEventArgs> SelectionChanged