API Reference
Class
MultiPageDocument
Represents a collection of related HTML documents that can be generated as a multi-page site.
Inheritance
- Object
- MultiPageDocument
Constructors
public MultiPageDocument(LibraryMode libraryMode = Online, ThemeMode themeMode = Light) #Initializes a new instance of the MultiPageDocument class.
Parameters
- libraryMode HtmlForgeX.LibraryMode = Online
- themeMode HtmlForgeX.ThemeMode = Light
Methods
public MultiPageDocument AddPage(String pageId, String fileName, String title, Action<Document> config) #Returns:
MultiPageDocumentAdds a page to the multi-page document.
Parameters
- pageId System.String
- fileName System.String
- title System.String
- config System.Action{HtmlForgeX.Document}
public MultiPageDocument AddPageWithLayout(String pageId, String fileName, String title, Action<TablerLayoutPage> config) #Returns:
MultiPageDocumentAdds a page with direct layout configuration.
Parameters
- pageId System.String
- fileName System.String
- title System.String
- config System.Action{HtmlForgeX.TablerLayoutPage}
public Void SaveAll(String outputDirectory, Boolean openInBrowser = false) #Returns:
VoidSaves all documents to the specified directory.
Parameters
- outputDirectory System.String
- openInBrowser System.Boolean = false
public async Task SaveAllAsync(String outputDirectory, Boolean openInBrowser = false) #Returns:
TaskSaves all documents asynchronously to the specified directory.
Parameters
- outputDirectory System.String
- openInBrowser System.Boolean = false
public MultiPageDocument WithLayout(TablerLayout layoutType) #Returns:
MultiPageDocumentSets the layout type for all pages.
Parameters
- layoutType HtmlForgeX.TablerLayout
public MultiPageDocument WithThemeAccessibility(HfxThemeAccessibility accessibility) #Returns:
MultiPageDocumentEnables accessibility overrides for contrast/palette adjustments.
Parameters
- accessibility HtmlForgeX.HfxThemeAccessibility