Document Solutions for Excel, Java Edition | Document Solutions
com.grapecity.documents.excel Package / ISlicers Interface / add Method
a IWorksheet object that represents the sheet, where theresulting slicer will be placed.The destination sheet must be in the workbook that contains the ISlicers object specifiedby expression.
The name of the slicer.The name must be unique across all slicerswithin a workbook.
The caption of the slicer.
The initial vertical position of the slicer, in points, relativeto the upper-left corner of cell A1 on a worksheet.
The initial horizontal position of the slicer, in points, relativeto the upper-left corner of cell A1 on a worksheet.
The initial width, in points, of the slicer control.
The initial height, in points, of the slicer control.
In This Topic
    add Method
    In This Topic
    Creates a new slicer and returns a ISlicer object.
    Syntax
    ISlicer add( 
       IWorksheet slicerDestination,
       java.lang.String name,
       java.lang.String caption,
       double top,
       double left,
       double width,
       double height
    )

    Parameters

    slicerDestination
    a IWorksheet object that represents the sheet, where theresulting slicer will be placed.The destination sheet must be in the workbook that contains the ISlicers object specifiedby expression.
    name
    The name of the slicer.The name must be unique across all slicerswithin a workbook.
    caption
    The caption of the slicer.
    top
    The initial vertical position of the slicer, in points, relativeto the upper-left corner of cell A1 on a worksheet.
    left
    The initial horizontal position of the slicer, in points, relativeto the upper-left corner of cell A1 on a worksheet.
    width
    The initial width, in points, of the slicer control.
    height
    The initial height, in points, of the slicer control.

    Return Value

    a ISlicer object.
    See Also