Bexel Manager API Documentation
Bexel.Api.SelectionSets.ISelectionSetCollection Interface Reference

Represents a collection of Bexel.Api.SelectionSets.SelectionSets. More...

Inheritance diagram for Bexel.Api.SelectionSets.ISelectionSetCollection:
Bexel.Api.SelectionSets.IReadOnlySelectionSetCollection IReadOnlyCollection Bexel.Api.SelectionSets.SelectionSetCollection

Public Member Functions

SelectionSet Add (string name, IEnumerable< Element > elements=null, string description="")
 Creates a new selection set and adds it to the collection. More...
 
SelectionSet Add (string name, string elementQueryExpression, string description="")
 Creates a new selection set and adds it to the collection. More...
 
bool Remove (string name)
 Removes selection set with the specified name from the collection. More...
 
bool Remove (SelectionSet selectionSet)
 Removes the specified selection set from the collection. More...
 
void RemoveRange (IEnumerable< SelectionSet > selectionSets)
 Removes the specified selection sets from the collection. More...
 
- Public Member Functions inherited from Bexel.Api.SelectionSets.IReadOnlySelectionSetCollection
SelectionSet GetSelectionSetByID (SelectionSetID id)
 Retrieves the selection set with the specified ID. More...
 
SelectionSet GetSelectionSetByID (int internalID)
 Retrieves the selection set with the specified internal ID. More...
 
SelectionSet GetSelectionSetByName (string name)
 Retrieves the selection set with the specified name. More...
 
bool ContainsKey (SelectionSetID id)
 Determines whether the collection contains the selection set with the specified ID. More...
 
bool ContainsKey (int internalID)
 Determines whether the collection contains the selection set with the specified internal ID. More...
 

Additional Inherited Members

- Properties inherited from Bexel.Api.SelectionSets.IReadOnlySelectionSetCollection
SelectionSet this[SelectionSetID id] [get]
 Retrieves the selection set with the specified ID. More...
 
SelectionSet this[int internalID] [get]
 Retrieves the selection set with the specified selection set internal ID. More...
 

Detailed Description

Represents a collection of Bexel.Api.SelectionSets.SelectionSets.

Member Function Documentation

◆ Add() [1/2]

SelectionSet Bexel.Api.SelectionSets.ISelectionSetCollection.Add ( string  name,
IEnumerable< Element elements = null,
string  description = "" 
)

Creates a new selection set and adds it to the collection.

Parameters
nameName of the selection set to be added.
elementsElements of the selection set to be added.
descriptionDescription of the selection set to be added.
Returns
Newly created selection set.
Exceptions
Bexel.Api.InvalidApiArgumentExceptionThe specified name is invalid or selection set with the same name already exists within collection.

Implemented in Bexel.Api.SelectionSets.SelectionSetCollection.

◆ Add() [2/2]

SelectionSet Bexel.Api.SelectionSets.ISelectionSetCollection.Add ( string  name,
string  elementQueryExpression,
string  description = "" 
)

Creates a new selection set and adds it to the collection.

Parameters
nameName of the selection set to be added.
elementQueryExpressionQuery expression to retreive elements.
descriptionDescription of the selection set to be added.
Returns
Newly created selection set.
Exceptions
Bexel.Api.InvalidApiArgumentExceptionThe specified name or expression is invalid or selection set with the same name already exists within collection.

Implemented in Bexel.Api.SelectionSets.SelectionSetCollection.

◆ Remove() [1/2]

bool Bexel.Api.SelectionSets.ISelectionSetCollection.Remove ( string  name)

Removes selection set with the specified name from the collection.

Parameters
nameName of the selection set to be removed.
Returns
True if remove is successful, False if no such selection set exists within collection.

This action will also delete selection set from the project.

Implemented in Bexel.Api.SelectionSets.SelectionSetCollection.

◆ Remove() [2/2]

bool Bexel.Api.SelectionSets.ISelectionSetCollection.Remove ( SelectionSet  selectionSet)

Removes the specified selection set from the collection.

Parameters
selectionSetA reference to selection set to be removed.
Returns
True if remove is successful, False if no such selection set exists within collection.

This action will also delete selection set from the project. The specified selection set will become invalid API object after removal.

Implemented in Bexel.Api.SelectionSets.SelectionSetCollection.

◆ RemoveRange()

void Bexel.Api.SelectionSets.ISelectionSetCollection.RemoveRange ( IEnumerable< SelectionSet selectionSets)

Removes the specified selection sets from the collection.

Parameters
selectionSetsA reference to selection sets to be removed.

This action will also delete selection set from the project. Only selection sets which belong to this collection will be removed. The specified selection sets will become invalid API objects after removal.

Implemented in Bexel.Api.SelectionSets.SelectionSetCollection.