Click or drag to resize

ImportWithFileNameDerivedPropertiesActionGetProjectItemNameFromTemplateName Method

Gets the target table name by replacing placeholders in the target template name with actual property values from the provided properties enumeration.

Namespace: Altaxo.Serialization.NamePropertyExtraction
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3618.0 (4.8.3618.0)
Syntax
C#
public static string GetProjectItemNameFromTemplateName(
	string targetTemplateName,
	IEnumerable<(string PropertyName, Object PropertyValue)> properties,
	int globalIndexOfTable,
	Dictionary<string, HashSet<string>> folderToProjectItemNames
)

Parameters

targetTemplateName  String
The target template name containing placeholders.
properties  IEnumerableValueTupleString, Object
The enumeration of property names and values to replace the placeholders.
globalIndexOfTable  Int32
The global index of the table, used for generating unique names.
folderToProjectItemNames  DictionaryString, HashSetString
A dictionary mapping folder names to the set of project item names within each folder.

Return Value

String
The target table name with placeholders replaced by actual property values.
Exceptions
ExceptionCondition
ArgumentNullException
See Also