Package com.grapecity.documents.excel
Interface ISlicer
public interface ISlicer
Represents a slicer in a
IWorkbook.-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Deletes the slicer and removes it from the associatedISlicerscollection.voidUpdates the slicer settings from the json string.Gets the caption of the specified slicer.booleanGets whether the header that displays the slicer's caption is visible.doubleGets the height of the specified slicer, in points.doublegetLeft()Gets the horizontal position of the specified slicer, in points, relative to the upper-left corner of cell A1 on a worksheet.getName()Gets the name of the specified slicer.intGets the number of columns in the specified slicer.doubleGets the height, in points, of each row in the specified slicer.getShape()Gets theIShapeobject associated with the specified slicer.Gets theISlicerCacheobject associated with the slicer.getStyle()Gets the style currently applied to the specified slicer.doublegetTop()Gets the vertical position of the specified slicer, in points, relative to the upper-left corner of cell A1 on a worksheet.doublegetWidth()Gets the width of the specified slicer, in points.voidsetCaption(String value) Sets the caption of the specified slicer.voidsetDisplayHeader(boolean value) Sets whether the header that displays the slicer's caption is visible.voidsetHeight(double value) Sets the height of the specified slicer, in points.voidsetLeft(double value) Sets the horizontal position of the specified slicer, in points, relative to the upper-left corner of cell A1 on a worksheet.voidSets the name of the specified slicer.voidsetNumberOfColumns(int value) Sets the number of columns in the specified slicer.voidsetRowHeight(double value) Sets the height, in points, of each row in the specified slicer.voidsetStyle(ITableStyle value) Sets the style currently applied to the specified slicer.voidsetTop(double value) Sets the vertical position of the specified slicer, in points, relative to the upper-left corner of cell A1 on a worksheet.voidsetWidth(double value) Sets the width of the specified slicer, in points.toJson()Generates a json string from slicer.
-
Method Details
-
getCaption
String getCaption()Gets the caption of the specified slicer. -
setCaption
Sets the caption of the specified slicer. -
getDisplayHeader
boolean getDisplayHeader()Gets whether the header that displays the slicer's caption is visible. -
setDisplayHeader
void setDisplayHeader(boolean value) Sets whether the header that displays the slicer's caption is visible. -
getHeight
double getHeight()Gets the height of the specified slicer, in points. -
setHeight
void setHeight(double value) Sets the height of the specified slicer, in points. -
getLeft
double getLeft()Gets the horizontal position of the specified slicer, in points, relative to the upper-left corner of cell A1 on a worksheet. -
setLeft
void setLeft(double value) Sets the horizontal position of the specified slicer, in points, relative to the upper-left corner of cell A1 on a worksheet. -
getName
String getName()Gets the name of the specified slicer. -
setName
Sets the name of the specified slicer. -
getNumberOfColumns
int getNumberOfColumns()Gets the number of columns in the specified slicer. -
setNumberOfColumns
void setNumberOfColumns(int value) Sets the number of columns in the specified slicer. -
getRowHeight
double getRowHeight()Gets the height, in points, of each row in the specified slicer. -
setRowHeight
void setRowHeight(double value) Sets the height, in points, of each row in the specified slicer. -
getSlicerCache
ISlicerCache getSlicerCache()Gets theISlicerCacheobject associated with the slicer. -
getShape
IShape getShape()Gets theIShapeobject associated with the specified slicer. -
getTop
double getTop()Gets the vertical position of the specified slicer, in points, relative to the upper-left corner of cell A1 on a worksheet. -
setTop
void setTop(double value) Sets the vertical position of the specified slicer, in points, relative to the upper-left corner of cell A1 on a worksheet. -
getWidth
double getWidth()Gets the width of the specified slicer, in points. -
setWidth
void setWidth(double value) Sets the width of the specified slicer, in points. -
delete
void delete()Deletes the slicer and removes it from the associatedISlicerscollection. -
getStyle
ITableStyle getStyle()Gets the style currently applied to the specified slicer. -
setStyle
Sets the style currently applied to the specified slicer. -
fromJson
Updates the slicer settings from the json string.- Parameters:
json- the json string contains a slicer
-
toJson
String toJson()Generates a json string from slicer.- Returns:
- the json string contains a slicer
-