FileTopic Class
- Namespace
- Kampute.DocToolkit.Topics
- Assembly
- Kampute.DocToolkit.dll
Definition
Represents source of a documentation topic that reads content from a file.
public class FileTopic : ConvertibleTopic, IFileBasedTopic- Inheritance
- object
- TopicSource
- ConvertibleTopic
- FileTopic
- Implements
- Inherited by
Remarks
Thread Safety
Public static members of the type are guaranteed to be thread-safe. However, public instance members are not thread-safe.
Constructors
| FileTopic(string, string) | Initializes a new instance of the FileTopic class. |
Properties
| ContentFormat | Gets the format of the content in the topic. |
| FilePath | Gets the path to the file that contains the topic content. |
Methods
| CreateContentReader(IDocumentationContext) | Creates a TextReader to read the content of the source file. |

This class can be used directly, or extended for specialized file formats like Markdown or HTML through derived classes.