Click or drag to resize

StyleListManagerBaseTList, TItem, TListManagerEntry Class

Implements a basic manager for style lists.
Inheritance Hierarchy

Namespace: Altaxo.Drawing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public abstract class StyleListManagerBase<TList, TItem, TListManagerEntry> : IStyleListManager<TList, TItem>
where TList : Object, IStyleList<TItem>
where TItem : IImmutable
where TListManagerEntry : StyleListManagerBaseEntryValue<TList, TItem>

Type Parameters

TList
Type of the list of style items.
TItem
Type of the style item in the lists.
TListManagerEntry
Type of the entries used by the list manager (amended for instance with the list level or other information).

The StyleListManagerBaseTList, TItem, TListManagerEntry type exposes the following members.

Constructors
 NameDescription
Protected methodStyleListManagerBaseTList, TItem, TListManagerEntry Initializes a new instance of the StyleListManagerBaseTList, TItem, TListManagerEntry class.
Top
Properties
 NameDescription
Public propertyBuiltinDefault Gets the builtin default list.
Public propertyDeserializationRenameDictionaryKey Gets a string that is used as a key in the property dictionary of the deserialization info to get the renaming dictionary. The renaming dictionary is a dictionary that maps original list names to the new list names that some of the deserialized lists are renamed to.
Top
Methods
 NameDescription
Public methodContainsList Determines whether the specified name contains a list (style) with the provided name.
Public methodCreateNewList Creates a new standard list of items.
Protected methodEhDeserializationInfoCreated Initializes the deserialization property dictionary for list renaming.
Protected methodEhProjectClosed Called when the current project is closed. Removes all those list which are project lists.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetAllListNames Gets the names of all entries (styles) in the list.
Public methodGetEntryValue Gets the manager entry with the specified name.
Public methodGetEntryValues Gets all manager entries with their concrete entry type.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetList Gets the list (style) with the provided name.
Public methodGetListLevelName Gets the display name for a definition level.
Public methodGetParentList Gets the parent list of the item
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodGetUnusedName Generates a name that is not yet used by any registered list.
Protected methodInternalTryRegisterList Try to register the provided list.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnListAdded Raises notifications after a list has been added.
Protected methodOnListChanged Raises notifications after a list has changed.
Protected methodOnUserDefinedListAddedChangedRemoved Handles changes to user-defined lists.
Public methodSwitchItemDefinitionLevelBetweenUserAndProject Switches the item definition level between user and project, i.e. a list that was at user level before is switched to project level, and a list that was at project level before is switched to user level.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetItemByHierarchicalName Tries to get a item by its hierarchical name. The name can either consist of two elements: ListName/ItemName, or of three elements ItemLevel/ListName/ItemName. Separator char is either forward slash or backslash
Public methodTryGetList Tries to get the manager entry with the specified name.
Public methodTryGetListByMembers Try to find an existing list by using only the values of the items. A hint to the name of the existing list can speed up the search, but is not used otherwise.
Public methodTryRegisterList(TList, ItemDefinitionLevel, TList) Try to register the provided list.
Public methodTryRegisterList(IXmlDeserializationInfo, TList, ItemDefinitionLevel, TList) Try to register the provided list. This function is intended to be used during deserialization. It keeps track of when a list was renamed, and stores this information in the deserialization info to be used by the members of the list during deserialization.
Public methodTryRegisterList(String, IEnumerableTItem, ItemDefinitionLevel, FuncString, IEnumerableTItem, TList, TList) Try to register the provided list.
Top
Events
 NameDescription
Public eventChanged Occurs when a list is added to the manager. The event is hold weak, thus you can safely add your handler without running in memory leaks.
Top
Fields
 NameDescription
Protected field_allLists Dictionary of all existing lists. Key is the list name. Value is a tuple, whose boolean entry designates whether this is a buildin or user list (false) or a project list (true).
Top
See Also