[]
ICellLinkControl, ICellLinkControlT<Integer>, IControl, IControlT<IScrollBar>, IRangeBaseAn IScrollBar lets users select an integer value within a range on a worksheet. It extends IRangeBase, so it supports minimum and maximum bounds, the current value, and small and large change increments. The control can be displayed horizontally or vertically.
IScrollBar scrollBar = worksheet.getControls().addScrollBar(50, 20, 120, 20);
scrollBar.setMin(0);
scrollBar.setMax(100);
scrollBar.setLargeChange(10);
scrollBar.setOrientation(FormControlOrientation.Horizontal);
intIScrollBar is displayed horizontally or vertically.voidsetLargeChange(int value) voidIScrollBar is displayed horizontally or vertically.getDisplay3DShading, getLinkedCell, setDisplay3DShading, setLinkedCellgetValue, setValuebringToFront, delete, getBottomRightCell, getEnabled, getFormControlType, getHeight, getLeft, getLocked, getName, getParent, getPlacement, getPrintObject, getShapeRange, getTop, getTopLeftCell, getVisible, getWidth, getZOrder, sendToBack, setEnabled, setHeight, setLeft, setLocked, setName, setPlacement, setPrintObject, setTop, setVisible, setWidthgetMax, getMin, getSmallChange, setMax, setMin, setSmallChangeWhen the user clicks the track of a ScrollBar, the value of the control increases or decreases by the value of LargeChange.
IScrollBar scrollBar = worksheet.getControls().addScrollBar(50, 20, 120, 20);
scrollBar.setLargeChange(10);
int largeChange = scrollBar.getLargeChange();
[0, 30000].When the user clicks the track of a ScrollBar, the value of the control increases or decreases by the value of LargeChange.
IScrollBar scrollBar = worksheet.getControls().addScrollBar(50, 20, 120, 20);
scrollBar.setLargeChange(10);
value - [0,30000]IScrollBar is displayed horizontally or vertically.The returned value indicates the current orientation of the scroll bar. The default value depends on the initial width and height that is used to create this control. If width > height, the default value is FormControlOrientation.Horizontal. Otherwise, the default value is FormControlOrientation.Vertical.
IScrollBar scrollBar = worksheet.getControls().addScrollBar(50, 100, 120, 40);
scrollBar.setOrientation(FormControlOrientation.Horizontal);
FormControlOrientation orientation = scrollBar.getOrientation();
FormControlOrientation.Horizontal if width > height; otherwise, FormControlOrientation.Vertical.IScrollBar is displayed horizontally or vertically.Use FormControlOrientation.Horizontal to display the scroll bar horizontally, or FormControlOrientation.Vertical to display it vertically.
IScrollBar scrollBar = worksheet.getControls().addScrollBar(50, 20, 120, 20);
scrollBar.setOrientation(FormControlOrientation.Horizontal);
value - The scroll bar orientation. This value must be FormControlOrientation.Horizontal or FormControlOrientation.Vertical.