Interface ISelectionService<T>
The service supporting the selection process of diagram items.
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public interface ISelectionService<T>
Type Parameters
T
The type of Selection service. |
Remarks
Note that this service can be customized and plugged into the Service
Properties
SelectedConnections
Gets the selected connections.
Declaration
IEnumerable<IConnection> SelectedConnections { get; }
Property Value
System. The selected connections. |
SelectedItems
Gets the selected items.
Declaration
IEnumerable<T> SelectedItems { get; }
Property Value
System.
|
SelectedItemsCount
Gets the selected items count.
Declaration
int SelectedItemsCount { get; }
Property Value
System.
|
SelectedShapes
Gets the currently selected diagram shapes.
Declaration
IEnumerable<IShape> SelectedShapes { get; }
Property Value
System.
|
Methods
ClearSelection()
Clears the selection.
Declaration
void ClearSelection()
DeselectItem(T)
Deselects the item.
Declaration
void DeselectItem(T item)
Parameters
T
item
The item. |
DeselectItems(IEnumerable<T>)
Deselects the items.
Declaration
void DeselectItems(IEnumerable<T> items)
Parameters
System. The items. |
GetSelectionBounds(Boolean, Boolean)
Recalculates the selection bounding box.
Declaration
Rect GetSelectionBounds(bool isGraphVirtualized = false, bool actualBounds = false)
Parameters
System.
|
System.
|
Returns
IsSingleSelected(T)
Determines whether [is single selected] [the specified item].
Declaration
bool IsSingleSelected(T item)
Parameters
T
item
The item. |
Returns
System.
|
SelectItem(T, Boolean)
Selects the item.
Declaration
void SelectItem(T item, bool addToExistingSelection = false)
Parameters
T
item
The item. |
System. If set to |
SelectItems(IEnumerable<T>, Boolean)
Selects the items.
Declaration
void SelectItems(IEnumerable<T> items, bool addToExistingSelection = false)
Parameters
System. The items. |
System. The add to existing selection flag. |
SelectNextItem(IList<T>, Boolean)
Selects the next item in an ordered collection based on the current selected items.
Declaration
void SelectNextItem(IList<T> orderedItems, bool moveBackward)
Parameters
System.
|
System.
|
SyncSelectedItems(T)
Syncs the selected items.
Declaration
bool SyncSelectedItems(T model)
Parameters
T
model
The model. |
Returns
System. True if item is added or removed from selectedItems, otherwise false. |
Events
PreviewSelectionChanged
Occurs when [selection starts].
Declaration
event EventHandler<DiagramSelectionChangedEventArgs> PreviewSelectionChanged
Event Type
System.
|
SelectionChanged
Occurs when [selection ended].
Declaration
event EventHandler<DiagramSelectionChangedEventArgs> SelectionChanged
Event Type
System.
|