Click or drag to resize

RendererExtensionsCreateFileNameFromHeaderTitlesAndGuid Method

Creates the file name from header titles and a unique identifier.

Namespace: Altaxo.Text.Renderers
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static string CreateFileNameFromHeaderTitlesAndGuid(
	List<string> headerTitles,
	string guid,
	bool firstHeadingBlockIsParentOfAll
)

Parameters

headerTitles  ListString
The header titles.
guid  String
The unique identifier.
firstHeadingBlockIsParentOfAll  Boolean
Set this to true, if there is only one header of level1, which is the parent of all other text.

Return Value

String
A file name (without path, without extension) that should be unique and easily identifyable.
Remarks

Background:

To bring the files in a version control system, it is not appropriate to simply numerate the files - then with every new section the numbers and thus the file names would change.

We cound have used the guid created by the titles, but this would make the file names hard to identify.

Thus we compromise: use the three first letters of the titles of max three levels, and then append some part of the guid.

See Also