Progress® Telerik® Reporting R3 2017

UnitParse Method (String, CultureInfo)

Parses a string value to create a new Unit based on the specified culture.

Namespace:  Telerik.Reporting.Drawing
Assembly:  Telerik.Reporting (in Telerik.Reporting.dll)

Syntax

public static Unit Parse(
	string value,
	CultureInfo culture
)

Parameters

value
Type: SystemString
A string value defining the unit.
culture
Type: System.GlobalizationCultureInfo
The CultureInfo object defining the rules for the parsing.

Return Value

Type: Unit
The created Unit.

Remarks

The parameter passed to this Method should be of the form "2px", "3.4in", "4cm", "2mm", "12.5pt", "4pc", etc. For more information on string representations of units see UnitType.

See Also