Class Capabilities.BackwardCompatibility
- Namespace
- MigraDoc
- Assembly
- MigraDoc.DocumentObjectModel.dll
Access to backward compatibility information via fluent API.
public static class Capabilities.BackwardCompatibility
- Inheritance
-
objectCapabilities.BackwardCompatibility
Properties
- DoNotCreateLastSection
Gets or sets a flag that defines what LastSection does if no section exists. If false, which is the default value, a new section is created and returned. If true, no section will be created and null is returned instead.
- DoNotUnifyTabStopHandling
In RTF a single decimal tabstop in a table is a special case. In contrast to other tabstops, multiple tabstops in tables and decimal tabstops outside of tables, the content is here aligned to the tabstop without the need of a tab. Adding a tab in RTF would move the content to the next (not existing) tabstop and would perhaps result in an unwanted line break. Since Version 6.0.0 PDFsharp provides a consistent behavior through PDF and RTF generation and all tabstop usages. With that change a tab is always needed to reach a tabstop. To achieve this, the RTF TabStopsRenderer will render an additional left aligned tabstop at position 0, if TabStops is inside a cell and contains only one tabstop, which is set to decimal alignment and a position greater than 0. Set this property to true to reactivate the old behavior without any corrections for this special case by PDFsharp.
- TreatArgbZeroAsEmptyColor
Gets or sets a flag that defines what new Color(0) do. If false, which is the default value, the RGB color black with opacity 0 is created. If true, Color.Empty is created for backward compatibility to older code using the MigraDoc Document Object Model.