'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
.