StyleListManagerBaseTList, TItem, TListManagerEntryTryRegisterList(String, IEnumerableTItem, ItemDefinitionLevel, FuncString, IEnumerableTItem, TList, TList) Method |
Try to register the provided list.
Namespace: Altaxo.DrawingAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public bool TryRegisterList(
string listName,
IEnumerable<TItem> listItems,
ItemDefinitionLevel listLevel,
Func<string, IEnumerable<TItem>, TList> ListCreator,
out TList storedList
)
Parameters
- listName String
- Name of the list to register.
- listItems IEnumerableTItem
- Items of the list to register.
- listLevel ItemDefinitionLevel
- The definitionlevel of the list to register.
- ListCreator FuncString, IEnumerableTItem, TList
- Function used to create a new list from listName and listItems. Can be null: in this case the standard list creator will be used.
- storedList TList
- On return, this is the list which is either registered, or is an already registed list with exactly the same elements.
Return Value
BooleanTrue if the list was new and thus was added to the collection; false if the list has already existed.
See Also