ISelectionService<T>
The service supporting the selection process of diagram items.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Type Parameters:
T
The type of Selection service.
Syntax:
public interface ISelectionService<T>
Derived Classes:
Properties
SelectedConnections
IEnumerable<IConnection>
Gets the selected connections.
IEnumerable<IConnection> SelectedConnections { get; }
The selected connections.
SelectedItems
IEnumerable<T>
Gets the selected items.
IEnumerable<T> SelectedItems { get; }
Gets the selected items count.
int SelectedItemsCount { get; }
SelectedShapes
IEnumerable<IShape>
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.
void DeselectItems(IEnumerable<T> items)
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.
Selects the next item in an ordered collection based on the current selected items.
void SelectNextItem(IList<T> orderedItems, bool moveBackward)
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