Click or drag to resize

MamlRenderer Class

Renderer for a Markdown MarkdownDocument object that renders into one or multiple MAML files (MAML = Microsoft Assisted Markup Language).
Inheritance Hierarchy
SystemObject
  RendererBase
    TextRendererBase
      TextRendererBaseMamlRenderer
        Altaxo.Text.RenderersMamlRenderer

Namespace: Altaxo.Text.Renderers
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class MamlRenderer : TextRendererBase<MamlRenderer>

The MamlRenderer type exposes the following members.

Constructors
 NameDescription
Public methodMamlRendererInitializes a new instance of the MamlRenderer class
Top
Properties
 NameDescription
Public propertyAmlBaseFileName The basic full path file name of the Maml files. To this name there will be appended (i) a number, and (ii) the extension ".aml".
Public propertyAmlFileNames Gets all .aml file names that are used here.
Public propertyAutoOutline If true, an outline of the content will be included at the top of every Maml file.
Public propertyBasePathName Gets the directory name (this is an absolute path name) that is the directory on which subdirectories like the content directory and the image directory are based.
Public propertyBodyTextFontFamily Gets or sets the font family of the body text that later on is rendered out of the Maml file. We need this here because we have to convert the formulas to images, and need therefore the image size.
Public propertyBodyTextFontSize Gets or sets the font size of the body text that later on is rendered out of the Maml file. We need this here because we have to convert the formulas to images, and need therefore the image size.
Public propertyContentFileNameBase Gets or sets the base name of .aml files. This property is ignored if the ProjectOrContentFileName itself is a .aml file.
Public propertyContentFolderName Name of the folder relative to the help file builder project, in which the content (.aml and .content) is stored. This property is ignored when the ProjectOrContentFileName is not a Sandcastle help file builder project file.
Public propertyContentLayoutFileName Gets the full file name of the content layout file (extension: .content), that is a kind of table of contents for the document.
Public propertyEnableHtmlEscape 
Public propertyEnableLinkToNextSection If true, a link to the next section is inserted at the end of each maml document.
Public propertyEnableLinkToPreviousSection If true, a link to the previous section is inserted at the beginning of each maml document.
Public propertyFirstHeadingBlockIsParentOfAll Gets a value indicating whether the very first heading block is the parent of all other heading blocks, i.e. it has the lowest level, and is the only heading block with that level.
Public propertyHeaderGuids 
Public propertyImageFileNames Gets all image file names that are used, including the equation images.
Public propertyImageFolderName Gets the name of the image folder. This folder, for instance 'Image', is relative to the BasePathName.
Public propertyImageTopicFileGuid 
Public propertyIsFirstInContainer
(Inherited from RendererBase)
Public propertyIsIntendedForHelp1File Set this property to true if the Maml is indended to be used in a Help1 file. In such a file, the placement of images with align="middle" differs from HTML rendering (the text baseline is aligned with the middle of the image, whereas in HTML the middle of the text is aligned with the middle of the image).
Public propertyIsLastInContainer
(Inherited from RendererBase)
Public propertyLinkToNextSectionLabelText Gets or sets the text that is inserted immediately before the link to the next section.
Public propertyLinkToPreviousSectionLabelText Gets or sets the text that is inserted immediately before the link to the next section.
Public propertyObjectRenderers
(Inherited from RendererBase)
Public propertyOldToNewImageUris Dictionary that translates image references currently in the provided markdown file to new image references in the file system.
Public propertyProjectOrContentFileName Full name of either the Sandcastle help file builder project (.shfbproj), or the layout content file (.content).
Public propertySplitLevel The header level where to split the output into different MAML files. 0 = render in only one file. 1 = Split at header level 1, 2 = split at header level 2, and so on.
Public propertyWriter
(Inherited from TextRendererBase)
Top
Methods
 NameDescription
Public methodCloseCurrentMamlFile 
Public methodElementStackContains 
Public methodEnsureLine
(Inherited from TextRendererBaseMamlRenderer)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberExtractContentLayoutFileNameFromShfbproj Extracts the file name of the content layout file (extension: .content) from the Sandcastle help file builder project.
Public methodExtractTextContentFrom 
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFindFragmentLink 
Public methodGetContentLayoutFileName Gets the name of the content layout file, depending on the file name the user has chosen to be the output file. If the user has chosen a .content file, then this name is returned. If the user has chosen a SHFBPROJ file, then the name of the .content file is extracted from this project file. If all this fails, the name of the content layout file is synthezized from the user chosen file name.
Public methodStatic memberGetFileNameRelativeTo Gets the file name relative to a directory. The returned relative file name is HTML friendly.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNumberOfElementsOnStack 
Public methodPop 
Public methodPopAll 
Public methodPopIndent
(Inherited from TextRendererBaseMamlRenderer)
Public methodPopTo 
Public methodPopToBefore 
Public methodPush(MamlElement) 
Public methodPush(MamlElement, IEnumerableKeyValuePairString, String) 
Public methodPushIndent(String)
(Inherited from TextRendererBaseMamlRenderer)
Public methodPushIndent(String)
(Inherited from TextRendererBaseMamlRenderer)
Public methodStatic memberRemoveOldContentsOfContentFolder Removes the old image files. This function will work only if there is a dedicated image folder, i.e. ImageFileNames has a value.
Public methodStatic memberRemoveOldContentsOfImageFolder Removes the old image files. This function will work only if there is a dedicated image folder, i.e. ImageFileNames has a value.
Public methodRender
(Overrides TextRendererBase.Render(MarkdownObject))
Protected methodReset
(Inherited from TextRendererBaseMamlRenderer)
Public methodStorePngImageFile 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryStartNewMamlFile Try to start a new maml file.
Public methodStatic memberUpdateShfbproj Updates the Sandcastle help file builder project file. This update removes old .aml files and old referenced images and replaces them with new .aml files and image files.
Public methodWrite(Char)
(Inherited from TextRendererBaseMamlRenderer)
Public methodWrite(MarkdownObject)
(Inherited from RendererBase)
Public methodWrite(ReadOnlySpanChar)
(Inherited from TextRendererBaseMamlRenderer)
Public methodWrite(String)
(Inherited from TextRendererBaseMamlRenderer)
Public methodWrite(StringSlice)
(Inherited from TextRendererBaseMamlRenderer)
Public methodWrite(StringSlice)
(Inherited from TextRendererBaseMamlRenderer)
Public methodWrite(String, Int32, Int32)
(Inherited from TextRendererBaseMamlRenderer)
Public methodWriteChildren(ContainerBlock)
(Inherited from RendererBase)
Public methodWriteChildren(ContainerInline)
(Inherited from RendererBase)
Public methodWriteContentLayoutFile Writes the content layout file, i.e. the sections as indicated by the heading levels are written in a XML tree structure to be read by Sandcastle help file builder.
Public methodWriteEscape(String) Writes the content escaped for Maml.
Public methodWriteEscape(StringSlice, Boolean) Writes the content escaped for Maml.
Public methodWriteEscape(StringSlice, Boolean) Writes the content escaped for XAML.
Public methodWriteEscape(String, Int32, Int32, Boolean) Writes the content escaped for Maml.
Public methodWriteImageTopicFile Writes a file which contains all referenced images in native resolution (without using width and height attributes). Including this file helps to ensure that all referenced images will be included into the help file.
Public methodWriteLeafInline
(Inherited from TextRendererBaseMamlRenderer)
Public methodWriteLeafRawLines Writes the lines of a LeafBlock
Public methodWriteLine
(Inherited from TextRendererBaseMamlRenderer)
Public methodWriteLine(Char)
(Inherited from TextRendererBaseMamlRenderer)
Public methodWriteLine(NewLine)
(Inherited from TextRendererBaseMamlRenderer)
Public methodWriteLine(String)
(Inherited from TextRendererBaseMamlRenderer)
Top
Events
 NameDescription
Public eventObjectWriteAfter
(Inherited from RendererBase)
Public eventObjectWriteBefore
(Inherited from RendererBase)
Top
Fields
 NameDescription
Protected fieldpreviousWasLine
(Inherited from TextRendererBaseMamlRenderer)
Top
See Also

Reference

Altaxo.Text.Renderers Namespace
TextRendererBase