Interface
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:

cs-api-definition
public interface ISelectionService<T>

Properties

SelectedConnections

Gets the selected connections.

Declaration

cs-api-definition
IEnumerable<IConnection> SelectedConnections { get; }

Property Value

IEnumerable<IConnection>

The selected connections.

SelectedItems

Gets the selected items.

Declaration

cs-api-definition
IEnumerable<T> SelectedItems { get; }

Property Value

IEnumerable<T>

SelectedItemsCount

Gets the selected items count.

Declaration

cs-api-definition
int SelectedItemsCount { get; }

Property Value

int

SelectedShapes

Gets the currently selected diagram shapes.

Declaration

cs-api-definition
IEnumerable<IShape> SelectedShapes { get; }

Property Value

IEnumerable<IShape>

Methods

ClearSelection()

Clears the selection.

Declaration

cs-api-definition
void ClearSelection()

DeselectItem(T)

Deselects the item.

Declaration

cs-api-definition
void DeselectItem(T item)

Parameters

item

T

The item.

DeselectItems(IEnumerable<T>)

Deselects the items.

Declaration

cs-api-definition
void DeselectItems(IEnumerable<T> items)

Parameters

items

IEnumerable<T>

The items.

GetSelectionBounds(bool, bool)

Recalculates the selection bounding box.

Declaration

cs-api-definition
Rect GetSelectionBounds(bool isGraphVirtualized = false, bool actualBounds = false)

Parameters

isGraphVirtualized

bool

actualBounds

bool

Returns

Rect

IsSingleSelected(T)

Determines whether [is single selected] [the specified item].

Declaration

cs-api-definition
bool IsSingleSelected(T item)

Parameters

item

T

The item.

Returns

bool

true if [is single selected] [the specified item]; otherwise, false.

SelectItem(T, bool)

Selects the item.

Declaration

cs-api-definition
void SelectItem(T item, bool addToExistingSelection = false)

Parameters

item

T

The item.

addToExistingSelection

bool

If set to true [add to existing selection].

SelectItems(IEnumerable<T>, bool)

Selects the items.

Declaration

cs-api-definition
void SelectItems(IEnumerable<T> items, bool addToExistingSelection = false)

Parameters

items

IEnumerable<T>

The items.

addToExistingSelection

bool

The add to existing selection flag.

SelectNextItem(IList<T>, bool)

Selects the next item in an ordered collection based on the current selected items.

Declaration

cs-api-definition
void SelectNextItem(IList<T> orderedItems, bool moveBackward)

Parameters

orderedItems

IList<T>

moveBackward

bool

SyncSelectedItems(T)

Syncs the selected items.

Declaration

cs-api-definition
bool SyncSelectedItems(T model)

Parameters

model

T

The model.

Returns

bool

True if item is added or removed from selectedItems, otherwise false.

Events

PreviewSelectionChanged

Occurs when [selection starts].

Declaration

cs-api-definition
event EventHandler<DiagramSelectionChangedEventArgs> PreviewSelectionChanged

Event Value

EventHandler<DiagramSelectionChangedEventArgs>

SelectionChanged

Occurs when [selection ended].

Declaration

cs-api-definition
event EventHandler<DiagramSelectionChangedEventArgs> SelectionChanged

Event Value

EventHandler<DiagramSelectionChangedEventArgs>