HtmlFileTopic.GenerateTitle Method

Namespace
Kampute.DocToolkit.Topics
Assembly
  • Kampute.DocToolkit.dll

Definition

Extracts the title of the topic from the HTML file.
protected override string GenerateTitle()

Returns

string
The title of the topic.

Exceptions

IOException
Thrown when an I/O error occurs while reading the file specified by FileTopic.FilePath.

Remarks

This method attempts to extract the content of the <title> tag from the HTML file. If the tag is not found, it falls back to the default title generation from the topic's name.