Bexel Manager API Documentation
Bexel.Api.SelectionSets.SelectionSetFolderCollection Class Reference

More...

Inheritance diagram for Bexel.Api.SelectionSets.SelectionSetFolderCollection:
Bexel.Api.SelectionSets.ReadOnlySelectionSetFolderCollection Bexel.Api.SelectionSets.ISelectionSetFolderCollection Bexel.Api.SelectionSets.IReadOnlySelectionSetFolderCollection Bexel.Api.SelectionSets.IReadOnlySelectionSetFolderCollection IReadOnlyCollection IReadOnlyCollection

Public Member Functions

SelectionSetFolder Add (string name, string description="")
 Creates a new selection set folder and adds it to the collection. More...
 
bool Remove (string name)
 Removes selection set folder with the specified name from the collection. More...
 
bool Remove (SelectionSetFolder folder)
 Removes the specified selection set folder from the collection. More...
 
void RemoveRange (IEnumerable< SelectionSetFolder > folders)
 Removes the specified selection set folders from the collection. More...
 
- Public Member Functions inherited from Bexel.Api.SelectionSets.ReadOnlySelectionSetFolderCollection
IEnumerator< SelectionSetFolderGetEnumerator ()
 
SelectionSetFolder GetSelectionSetFolderByID (SelectionSetFolderID id)
 Retrieves the selection set folder with the specified ID. More...
 
SelectionSetFolder GetSelectionSetFolderByID (int internalID)
 Retrieves the selection set folder with the specified internal ID. More...
 
SelectionSetFolder GetSelectionSetFolderByName (string name)
 Retrieves the selection set folder with the specified name. More...
 
bool ContainsKey (SelectionSetFolderID id)
 Determines whether the collection contains the selection set folder with the specified ID. More...
 
bool ContainsKey (int internalID)
 Determines whether the collection contains the selection set folder with the specified internal ID. More...
 

Additional Inherited Members

- Protected Attributes inherited from Bexel.Api.SelectionSets.ReadOnlySelectionSetFolderCollection
readonly SelectionSetCollectionRef selectionSetsRef
 
readonly Project project
 
- Properties inherited from Bexel.Api.SelectionSets.ReadOnlySelectionSetFolderCollection
int Count [get]
 
SelectionSetFolder this[SelectionSetFolderID id] [get]
 
SelectionSetFolder this[int internalID] [get]
 
- Properties inherited from Bexel.Api.SelectionSets.IReadOnlySelectionSetFolderCollection
SelectionSetFolder this[SelectionSetFolderID id] [get]
 Retrieves the selection set folder with the specified ID. More...
 
SelectionSetFolder this[int internalID] [get]
 Retrieves the selection set folder with the specified selection set folder internal ID. More...
 

Detailed Description

Member Function Documentation

◆ Add()

SelectionSetFolder Bexel.Api.SelectionSets.SelectionSetFolderCollection.Add ( string  name,
string  description = "" 
)

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

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

Implements Bexel.Api.SelectionSets.ISelectionSetFolderCollection.

◆ Remove() [1/2]

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

Removes selection set folder with the specified name from the collection.

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

This action will also delete selection set folder from the project.

Implements Bexel.Api.SelectionSets.ISelectionSetFolderCollection.

◆ Remove() [2/2]

bool Bexel.Api.SelectionSets.SelectionSetFolderCollection.Remove ( SelectionSetFolder  folder)

Removes the specified selection set folder from the collection.

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

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

Implements Bexel.Api.SelectionSets.ISelectionSetFolderCollection.

◆ RemoveRange()

void Bexel.Api.SelectionSets.SelectionSetFolderCollection.RemoveRange ( IEnumerable< SelectionSetFolder folders)

Removes the specified selection set folders from the collection.

Parameters
foldersA reference to selection set folders to be removed.

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

Implements Bexel.Api.SelectionSets.ISelectionSetFolderCollection.