ComponentOne FlexReport for WinForms
TryParse(String,Double,UnitTypeEnum) Method

C1.Win.C1Document.4 Assembly > C1.Win.C1Document Namespace > Unit Structure > TryParse Method : TryParse(String,Double,UnitTypeEnum) Method
The string to parse.
OUT: value of Unit structure.
OUT: units of Unit structure.
Parses a string and gets Value and Unit.Utits from that string.
Syntax
'Declaration
 
Public Overloads Shared Function TryParse( _
   ByVal s As System.String, _
   ByRef value As System.Double, _
   ByRef units As UnitTypeEnum _
) As System.Boolean
public static System.bool TryParse( 
   System.string s,
   out System.double value,
   out UnitTypeEnum units
)

Parameters

s
The string to parse.
value
OUT: value of Unit structure.
units
OUT: units of Unit structure.

Return Value

A true if conversion was successfull.
See Also

Reference

Unit Structure
Unit Members
Overload List