Method Parse
Parse(string?, string, Twips, IConversionDiagnostics?)
Converts an RDL size string to twips, reporting anything it had to do to the value.
public static Twips Parse(string? text, string context, Twips fallback, IConversionDiagnostics? diagnostics)
Parameters
textstringThe size string.
contextstringWhat is being measured, for the diagnostic message — usually the element's name.
fallbackTwipsThe value to use when the text is not a size.
diagnosticsIConversionDiagnosticsThe sink for diagnostics, or null to discard them.
Returns
- Twips
The measure.
Remarks
Degrades and reports; never throws. An unreadable size in one textbox must not fail a report, and must not pass unnoticed either.