ProjectFolderGetNamePart Method |
Gets the name portion of a full name. Can either be the name of an item (worksheet, graph) or a full folder name.
If the name of a item (worksheet or graph) is provided, the item's name without folder name is returned (thus containing no
DirectorySeparatorChar)directory name is returned.
If a full folder path is provided (i.e. either an empty string or a string ending with a
DirectorySeparatorChar), the name of the last folder of the full folder path (!) is returned.
Namespace: Altaxo.MainAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static string GetNamePart(
string fullName
)
Parameters
- fullName String
- The full item or folder name.
Return Value
StringThe name portion of
fullName.
See Also