Class RendererBase
- Namespace
- MigraDoc.RtfRendering
- Assembly
- MigraDoc.RtfRendering.dll
This class is a base for all renderers.
public abstract class RendererBase
- Inheritance
-
objectRendererBase
- Derived
Fields
- _docObject
The DocumentObject (the current document).
- _docRenderer
The RtfDocumentRenderer.
- _enumTranslationTable
The translation table.
- _useEffectiveValue
Specifies whether to use the effective value.
Methods
- GetValueAsIntended(string)
Gets the specified value either as effective value if useEffectiveValue is set to true, otherwise returns the usual GetValue, or null if IsNull evaluates to true.
- GetValueAsIntended2<T>(string)
Typed version of GetValueAsIntended.
- GetValueOrDefault(string, object)
Returns GetValueAsIntended if this evaluates non-null, otherwise the given default value.
- RenderTrailingParagraph(DocumentElements)
Renders a trailing standard paragraph in case the last element in elements isn’t a paragraph. (Some RTF elements need to close with a paragraph.)
- RenderUnit(string, Unit, RtfUnit, bool)
Renders the given Unit as control / value pair of the given RTF control in the given RTF unit, optionally with a star.
- Translate(string, string)
Translates a value named 'valueName' to a Rtf Control word that specifies a unit, enum, bool or color. If it is a unit, twips are assumed as RtfUnit.
- Translate(string, string, RtfUnit, Unit, bool)
Translates a value named 'valueName' to a Rtf Control word that specifies a unit, enum, bool, int or color.
- Translate(string, string, RtfUnit, string?, bool)
Translates a value named 'valueName' to a Rtf Control word that specifies a Unit, Enum, Bool, Int or Color.
- TranslateBool(string, string, string, bool)
Translates a value named 'valueName' to a Rtf Control word that specifies a boolean and divides in two control words. If the control word in false case is simply left away, you can also use the Translate function as well.