Table of Contents

Method Parse

Namespace
DocWright.Reporting
Assembly
DocWright.Reporting.dll

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

text string

The size string.

context string

What is being measured, for the diagnostic message — usually the element's name.

fallback Twips

The value to use when the text is not a size.

diagnostics IConversionDiagnostics

The 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.