Reports for WinForms | ComponentOne
C1.C1Report.CustomFields.4 Assembly / C1.C1Report.CustomFields.Maps Namespace / Util Class / GetInt Method / GetInt(Object,Int32) Method
The object to convert.
The default value.

In This Topic
    GetInt(Object,Int32) Method
    In This Topic
    Converts an object to an integer value.
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetInt( _
       ByVal value As Object, _
       ByVal defaultValue As Integer _
    ) As Integer
    public static int GetInt( 
       object value,
       int defaultValue
    )

    Parameters

    value
    The object to convert.
    defaultValue
    The default value.

    Return Value

    The converted value, or defaultValue if the object could not be converted.
    See Also