DocumentationComposer.GenerateDocumentationForStruct Method
- Namespace
- Kampute.DocToolkit
- Assembly
- Kampute.DocToolkit.dll
Definition
Generates documentation pages for the specified struct type and its members.
protected virtual void GenerateDocumentationForStruct(IDocumentWriterFactory writerFactory, StructModel structType, PageGranularity granularity)Parameters
writerFactoryIDocumentWriterFactory- The factory for creating rendering contexts.
structTypeStructModel- The struct type to document.
granularityPageGranularity- The page granularity that defines how the struct and its members are organized in the documentation.
Exceptions
- ArgumentNullException
- Thrown when
writerFactoryorstructTypeisnull.

- If the
- If the
The method also recursively processes any nested types declared within the struct.granularityincludes PageGranularity.Type, a dedicated page is created for the struct.granularityincludes PageGranularity.Member, separate documentation pages are generated for each member of the struct. Otherwise, all member documentation is included on the struct page.