Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / FormatCells Class / TryGetNumberFormatCategory Method
The current GrapeCity.Spreadsheet.IWorkbook object.
The category of the number format.


In This Topic
    TryGetNumberFormatCategory Method
    In This Topic
    Gets the category of the specified number format.
    Syntax
    'Declaration
     
    
    Public Shared Function TryGetNumberFormatCategory( _
       ByVal numberFormat As NumberFormat, _
       ByVal workbook As IWorkbook, _
       ByRef category As PredefinedNumberFormats _
    ) As Boolean
    'Usage
     
    
    Dim numberFormat As NumberFormat
    Dim workbook As IWorkbook
    Dim category As PredefinedNumberFormats
    Dim value As Boolean
     
    value = FormatCells.TryGetNumberFormatCategory(numberFormat, workbook, category)
    public static bool TryGetNumberFormatCategory( 
       NumberFormat numberFormat,
       IWorkbook workbook,
       out PredefinedNumberFormats category
    )

    Parameters

    numberFormat
    workbook
    The current GrapeCity.Spreadsheet.IWorkbook object.
    category
    The category of the number format.

    Return Value

    true if the number format belongs to predefined categories; otherwise, false.
    See Also