Spread WPF 18
GrapeCity.Wpf.SpreadSheet.Dialogs Namespace / BuiltInDialogs Class / FormatCells Method / FormatCells(GcSpreadSheet,IRange,StyleFormat,FormatCellsTabs,Int32,Object,Boolean) Method
The GrapeCity.Wpf.SpreadSheet.GcSpreadSheet control to work with.
The current cell range to work with.
The GrapeCity.Spreadsheet.StyleFormat value to display as current settings.
The default active tab.
The default selected number format category.
The cell value to display as preview.


In This Topic
    FormatCells(GcSpreadSheet,IRange,StyleFormat,FormatCellsTabs,Int32,Object,Boolean) Method
    In This Topic
    Shows the format cells dialog to customize the cell settings.
    Syntax
    'Declaration
     
    Public Overloads Shared Function FormatCells( _
       ByVal spread As GcSpreadSheet, _
       ByVal range As IRange, _
       ByVal styleFormat As StyleFormat, _
       Optional ByVal activeTab As FormatCellsTabs, _
       Optional ByVal numFmtCategory As Integer, _
       Optional ByVal cellValue As Object, _
       Optional ByVal isTable As Boolean _
    ) As IDialog
    'Usage
     
    Dim spread As GcSpreadSheet
    Dim range As IRange
    Dim styleFormat As StyleFormat
    Dim activeTab As FormatCellsTabs
    Dim numFmtCategory As Integer
    Dim cellValue As Object
    Dim isTable As Boolean
    Dim value As IDialog
     
    value = BuiltInDialogs.FormatCells(spread, range, styleFormat, activeTab, numFmtCategory, cellValue, isTable)
    public static IDialog FormatCells( 
       GcSpreadSheet spread,
       IRange range,
       StyleFormat styleFormat,
       FormatCellsTabs activeTab,
       int numFmtCategory,
       object cellValue,
       bool isTable
    )

    Parameters

    spread
    The GrapeCity.Wpf.SpreadSheet.GcSpreadSheet control to work with.
    range
    The current cell range to work with.
    styleFormat
    The GrapeCity.Spreadsheet.StyleFormat value to display as current settings.
    activeTab
    The default active tab.
    numFmtCategory
    The default selected number format category.
    cellValue
    The cell value to display as preview.
    isTable

    Return Value

    The IDialog object represents the format cells dialog.
    See Also