public class ScrollBarActiveXControl extends SpinButtonActiveXControl
Example
//Initialize a new workbook.
Workbook book = new Workbook();
//Add a ToggleButtonActiveXControl.
Shape shape = book.getWorksheets().get(0).getShapes().addActiveXControl(ControlType.SCROLL_BAR, 1, 0, 1, 0, 100, 50);
ScrollBarActiveXControl activeXControl = (ScrollBarActiveXControl)shape.getActiveXControl();
//do your business
//Save the excel file.
book.save("exmaple.xlsx");
| Modifier and Type | Method and Description |
|---|---|
int |
getLargeChange()
Gets the amount by which the Position property changes
|
int |
getType()
Gets the type of the ActiveX control.
|
void |
setLargeChange(int value)
Sets the amount by which the Position property changes
|
getMax, getMin, getOrientation, getPosition, getSmallChange, setMax, setMin, setOrientation, setPosition, setSmallChangegetData, getFont, getIMEMode, getTextAlign, isAutoSize, isEnabled, isLocked, isTransparent, setAutoSize, setEnabled, setIMEMode, setLocked, setTextAlign, setTransparentgetBackOleColor, getForeOleColor, getHeight, getLinkedCell, getListFillRange, getMouseIcon, getMousePointer, getShadow, getWidth, getWorkbook, isVisible, setBackOleColor, setForeOleColor, setHeight, setLinkedCell, setListFillRange, setMouseIcon, setMousePointer, setShadow, setVisible, setWidthpublic int getType()
See ControlType.
Example
if(activeXControl.getType() == com.aspose.cells.ControlType.SCROLL_BAR)
{
//do something
}
getType in class SpinButtonActiveXControlpublic int getLargeChange()
Example
activeXControl.setLargeChange(5);
public void setLargeChange(int value)
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.