Class DocumentationTemplate
- Namespace
- C4.Net.Documentation
- Assembly
- C4.Net.Core.dll
The superclass for all documentation templates.
public abstract class DocumentationTemplate
- Inheritance
-
DocumentationTemplate
- Derived
- Inherited Members
Constructors
DocumentationTemplate(Workspace)
Creates a new documentation template for the given workspace.
public DocumentationTemplate(Workspace workspace)
Parameters
workspaceWorkspacethe Workspace instance to create documentation for
Methods
AddImage(FileInfo)
Adds an image from the given file to the workspace.
public Image AddImage(FileInfo file)
Parameters
fileFileInfoa FileInfo representing the image file on disk
Returns
- Image
an Image object representing the image added
AddImages(DirectoryInfo)
Adds png/jpg/jpeg/gif images in the given directory to the workspace.
public IEnumerable<Image> AddImages(DirectoryInfo directory)
Parameters
directoryDirectoryInfoa DirectoryInfo representing the directory containing image files
Returns
- IEnumerable<Image>
The images that were added to the workspace.
AddSection(Component, string, Format, string)
Adds a custom section relating to a Component.
public Section AddSection(Component component, string name, Format format, string content)
Parameters
componentComponentthe Component the documentation content relates to
namestringthe name of the section
formatFormatthe format of the documentation content
contentstringa string containing the documentation content
Returns
- Section
a documentation Section
AddSection(Component, string, params FileSystemInfo[])
Adds a custom section relating to a Component from one or more files.
public Section AddSection(Component component, string name, params FileSystemInfo[] files)
Parameters
componentComponentthe Component the documentation content relates to
namestringthe name of the section
filesFileSystemInfo[]one or more FileInfo objects that point to the documentation content
Returns
- Section
a documentation Section
AddSection(Container, string, Format, string)
Adds a custom section relating to a Container.
public Section AddSection(Container container, string name, Format format, string content)
Parameters
containerContainerthe Container the documentation content relates to
namestringthe name of the section
formatFormatthe format of the documentation content
contentstringa string containing the documentation content
Returns
- Section
a documentation Section
AddSection(Container, string, params FileSystemInfo[])
Adds a custom section relating to a Container from one or more files.
public Section AddSection(Container container, string name, params FileSystemInfo[] files)
Parameters
containerContainerthe Container the documentation content relates to
namestringthe name of the section
filesFileSystemInfo[]one or more FileInfo objects that point to the documentation content
Returns
- Section
a documentation Section
AddSection(SoftwareSystem, string, Format, string)
Adds a custom section relating to a SoftwareSystem.
public Section AddSection(SoftwareSystem softwareSystem, string name, Format format, string content)
Parameters
softwareSystemSoftwareSystemthe SoftwareSystem the documentation content relates to
namestringthe name of the section
formatFormatthe format of the documentation content
contentstringa string containing the documentation content
Returns
- Section
a documentation Section
AddSection(SoftwareSystem, string, params FileSystemInfo[])
Adds a custom section relating to a SoftwareSystem from one or more files.
public Section AddSection(SoftwareSystem softwareSystem, string name, params FileSystemInfo[] files)
Parameters
softwareSystemSoftwareSystemthe SoftwareSystem the documentation content relates to
namestringthe name of the section
filesFileSystemInfo[]one or more FileInfo objects that point to the documentation content
Returns
- Section
a documentation Section
AddSection(string, Format, string)
Adds a custom section, that isn't related to any element in the model.
public Section AddSection(string name, Format format, string content)
Parameters
namestringthe name of the section
formatFormatthe format of the documentation content
contentstringa string containing the documentation content
Returns
- Section
a documentation section
AddSection(string, params FileInfo[])
Adds a custom section from a file, that isn't related to any element in the model.
public Section AddSection(string name, params FileInfo[] files)
Parameters
namestringthe name of the section
filesFileInfo[]one or more FileInfo objects that point to the documentation content
Returns
- Section
a documentation Section