StyleListManagerBaseTList, TItem, TListManagerEntryTryGetItemByHierarchicalName Method |
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
Namespace: Altaxo.DrawingAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public bool TryGetItemByHierarchicalName(
string fullItemName,
Func<TItem, string, bool> predicate,
out TItem item
)
Parameters
- fullItemName String
- Name of the item.
- predicate FuncTItem, String, Boolean
- A function that compares items with the item name, and returns true if the item has the provided item name.
First argument is the item, second argument the item name. The return value is true if the item's name and the itemName match.
- item TItem
- The found item. If the item was not found, the default value.
Return Value
BooleanTrue if the item was found; otherwise, false.
See Also