Bexel Manager API Documentation
Bexel.Api.Selection Class Reference

Represents the current selection. More...

Public Member Functions

void Select (IEnumerable< Element > elements, SelectionMode mode=SelectionMode.New)
 Selects specified elements. Use selection mode to define what happens with current selection. More...
 
void Select (IEnumerable< ElementID > elementIDs, SelectionMode mode=SelectionMode.New)
 Selects specified elements. Use selection mode to define what happens with current selection. More...
 
void Select (IEnumerable< int > internalElementIDs, SelectionMode mode=SelectionMode.New)
 Selects specified elements. Use selection mode to define what happens with current selection. More...
 
void Clear ()
 Clears the current selection. More...
 

Properties

EventHandler< SelectionChangedEventArgsSelectionChanged
 Occurs when the current selection changes. More...
 
SelectedElementsCollection SelectedElements [get]
 Returns the currently selected elements. More...
 

Detailed Description

Represents the current selection.

Member Function Documentation

◆ Clear()

void Bexel.Api.Selection.Clear ( )

Clears the current selection.

◆ Select() [1/3]

void Bexel.Api.Selection.Select ( IEnumerable< Element elements,
SelectionMode  mode = SelectionMode.New 
)

Selects specified elements. Use selection mode to define what happens with current selection.

Parameters
elementsElements to select.
modeSelection mode.

◆ Select() [2/3]

void Bexel.Api.Selection.Select ( IEnumerable< ElementID elementIDs,
SelectionMode  mode = SelectionMode.New 
)

Selects specified elements. Use selection mode to define what happens with current selection.

Parameters
elementIDsIDs of the elements to select.
modeSelection mode.

◆ Select() [3/3]

void Bexel.Api.Selection.Select ( IEnumerable< int >  internalElementIDs,
SelectionMode  mode = SelectionMode.New 
)

Selects specified elements. Use selection mode to define what happens with current selection.

Parameters
internalElementIDsInternal IDs of the elements to select.
modeSelection mode.

Property Documentation

◆ SelectedElements

SelectedElementsCollection Bexel.Api.Selection.SelectedElements
get

Returns the currently selected elements.

◆ SelectionChanged

EventHandler<SelectionChangedEventArgs> Bexel.Api.Selection.SelectionChanged
addremove

Occurs when the current selection changes.