Esempio n. 1
0
        /// <summary>
        /// Register common shortcuts that are available for all documents (worksheets and graphs), like name, path, creation date etc.
        /// </summary>
        /// <param name="renameData">Rename data structure in which the shortcuts have to be registered.</param>
        public static void RegisterCommonDocumentShortcuts(MultiRenameData renameData)
        {
            renameData.RegisterStringShortcut("N", GetFullName, "Name of the object (full name, with path)");
            renameData.RegisterStringShortcut("SN", GetShortName, "Short name of the object (without path");
            renameData.RegisterStringShortcut("PN", GetFolderName, "Path name of the object");
            renameData.RegisterIntegerShortcut("C", GetCounter, "Index of the object in the list");

            renameData.RegisterDateTimeShortcut("CD", GetCreationDate, "Creation date of the object");

            renameData.RegisterStringArrayShortcut("NA", GetNamePartArray, "Name array, i.e. full name split into individual path pieces");
            renameData.RegisterStringArrayShortcut("PA", GetFolderPartArray, "Path array, i.e. path name of the object split into individual path pieces");
        }