Table of Contents

Method TryParse

Namespace
DocWright.Reporting
Assembly
DocWright.Reporting.dll

TryParse(string?, out Twips)

Tries to convert an RDL size string to twips.

public static bool TryParse(string? text, out Twips value)

Parameters

text string

The size string, for example "2.5in".

value Twips

The measure, clamped to the representable range.

Returns

bool

true when the text is a size DocWright understands.

TryParse(string?, out Twips, out bool)

Tries to convert an RDL size string to twips, reporting whether the value had to be clamped.

public static bool TryParse(string? text, out Twips value, out bool clamped)

Parameters

text string

The size string.

value Twips

The measure, clamped to the representable range.

clamped bool

true when the value was outside the representable range and was brought into it.

Returns

bool

true when the text is a size DocWright understands.