RendererExtensionsCreateFileNameFromHeaderTitlesAndGuid Method |
Creates the file name from header titles and a unique identifier.
Namespace: Altaxo.Text.RenderersAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax 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
StringA 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