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 ServiceLocator.
Properties
SelectedConnections
Gets the selected connections.
Declaration
IEnumerable<IConnection> SelectedConnections { get; }
Property Value
System.Collections.Generic.IEnumerable<IConnection>
The selected connections. |
SelectedItems
Gets the selected items.
Declaration
IEnumerable<T> SelectedItems { get; }
Property Value
System.Collections.Generic.IEnumerable<T>
|
SelectedItemsCount
Gets the selected items count.
Declaration
int SelectedItemsCount { get; }
Property Value
System.Int32
|
SelectedShapes
Gets the currently selected diagram shapes.
Declaration
IEnumerable<IShape> SelectedShapes { get; }
Property Value
System.Collections.Generic.IEnumerable<IShape>
|
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.Collections.Generic.IEnumerable<T>
items
The items. |
GetSelectionBounds(Boolean, Boolean)
Recalculates the selection bounding box.
Declaration
Rect GetSelectionBounds(bool isGraphVirtualized = false, bool actualBounds = false)
Parameters
System.Boolean
isGraphVirtualized
|
System.Boolean
actualBounds
|
Returns
Rect
|
IsSingleSelected(T)
Determines whether [is single selected] [the specified item].
Declaration
bool IsSingleSelected(T item)
Parameters
T
item
The item. |
Returns
System.Boolean
|
SelectItem(T, Boolean)
Selects the item.
Declaration
void SelectItem(T item, bool addToExistingSelection = false)
Parameters
T
item
The item. |
System.Boolean
addToExistingSelection
If set to |
SelectItems(IEnumerable<T>, Boolean)
Selects the items.
Declaration
void SelectItems(IEnumerable<T> items, bool addToExistingSelection = false)
Parameters
System.Collections.Generic.IEnumerable<T>
items
The items. |
System.Boolean
addToExistingSelection
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.Collections.Generic.IList<T>
orderedItems
|
System.Boolean
moveBackward
|
SyncSelectedItems(T)
Syncs the selected items.
Declaration
bool SyncSelectedItems(T model)
Parameters
T
model
The model. |
Returns
System.Boolean
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.EventHandler<DiagramSelectionChangedEventArgs>
|
SelectionChanged
Occurs when [selection ended].
Declaration
event EventHandler<DiagramSelectionChangedEventArgs> SelectionChanged
Event Type
System.EventHandler<DiagramSelectionChangedEventArgs>
|