Click or drag to resize

StyleListManagerBaseTList, TItem, TListManagerEntryInternalTryRegisterList Method

Try to register the provided list.

Namespace: Altaxo.Drawing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
protected bool InternalTryRegisterList(
	TList instance,
	ItemDefinitionLevel level,
	out TList storedList,
	bool fireAddEvent
)

Parameters

instance  TList
The new list which is tried to register.
level  ItemDefinitionLevel
The level on which this list is defined.
storedList  TList
On return, this is the list which is either registered, or is an already registed list with exactly the same elements.
fireAddEvent  Boolean
If true, the add event is fired when a list is added.

Return Value

Boolean
True if the list was new and thus was added to the collection; false if the list has already existed.
See Also