HtmlForgeX

API Reference

Class

DocumentState

Namespace HtmlForgeX

Internal state and runtime information for a Document instance. Handles library tracking, error collection, and ID generation.

Inheritance

  • Object
  • DocumentState

Methods

GenerateRandomId(System.String preText, System.Int32 length) #

Generates a pseudo random identifier with a prefix.

Parameters

preText System.String required
Prefix for the identifier.
length System.Int32 required
Length of the random part.

Returns

Generated identifier.

Properties

ThemeMode #

Gets or sets the theme mode for the document.

LibraryMode #

Gets or sets the library mode for the document.

EnableDeferredScripts #

Gets or sets whether to enable deferred script execution to prevent timing issues. When enabled, component scripts will wait for all libraries to load before executing.

Libraries #

Thread-safe collection of libraries used by the document.

Errors #

Thread-safe collection of errors encountered during document processing.

Path #

Gets or sets the path for saving documents and related files.

StylePath #

Location for CSS resources.

ScriptPath #

Location for script resources.