InterfaceISelectionService<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>
Properties
SelectedConnections
Gets the selected connections.
Declaration
IEnumerable<IConnection> SelectedConnections { get; }
Property Value
The selected connections.
SelectedItems
Gets the selected items.
SelectedItemsCount
Gets the selected items count.
SelectedShapes
Gets the currently selected diagram shapes.
Declaration
IEnumerable<IShape> SelectedShapes { get; }
Property Value
Methods
DeselectItem(T)
Deselects the item.
Declaration
void DeselectItem(T item)
Parameters
item
T
The item.
DeselectItems(IEnumerable<T>)
Deselects the items.
Declaration
void DeselectItems(IEnumerable<T> items)
Parameters
items
IEnumerable<T>
The items.
GetSelectionBounds(bool, bool)
Recalculates the selection bounding box.
IsSingleSelected(T)
Determines whether [is single selected] [the specified item].
Declaration
bool IsSingleSelected(T item)
Parameters
item
T
The item.
Returns
true if [is single selected] [the specified item]; otherwise, false.
SelectItem(T, bool)
Selects the item.
Declaration
void SelectItem(T item, bool addToExistingSelection = false)
Parameters
item
T
The item.
addToExistingSelection
If set to true [add to existing selection].
SelectItems(IEnumerable<T>, bool)
Selects the items.
Declaration
void SelectItems(IEnumerable<T> items, bool addToExistingSelection = false)
Parameters
items
IEnumerable<T>
The items.
addToExistingSelection
The add to existing selection flag.
SelectNextItem(IList<T>, bool)
Selects the next item in an ordered collection based on the current selected items.
SyncSelectedItems(T)
Syncs the selected items.
Declaration
bool SyncSelectedItems(T model)
Parameters
model
T
The model.
Returns
True if item is added or removed from selectedItems, otherwise false.
Events
PreviewSelectionChanged
Occurs when [selection starts].
Declaration
event EventHandler<DiagramSelectionChangedEventArgs> PreviewSelectionChanged
Event Value
SelectionChanged
Occurs when [selection ended].
Declaration
event EventHandler<DiagramSelectionChangedEventArgs> SelectionChanged
Event Value