ToggleButtonActiveXControl
Inheritance: java.lang.Object, com.aspose.cells.ActiveXControlBase, com.aspose.cells.ActiveXControl
public class ToggleButtonActiveXControl extends ActiveXControl
Represents a ToggleButton ActiveX control.
Example
//Initialize a new workbook.
Workbook book = new Workbook();
//Add a ToggleButtonActiveXControl.
Shape shape = book.getWorksheets().get(0).getShapes().addActiveXControl(ControlType.TOGGLE_BUTTON, 1, 0, 1, 0, 100, 50);
ToggleButtonActiveXControl activeXControl = (ToggleButtonActiveXControl)shape.getActiveXControl();
//do your business
//Save the excel file.
book.save("exmaple.xlsx");
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getAccelerator() | Gets the accelerator key for the control. |
getBackOleColor() | Gets the ole color of the background. |
getCaption() | Gets the descriptive text that appears on a control. |
getClass() | |
getData() | Gets the binary data of the control. |
getFont() | Represents the font of the control. |
getForeOleColor() | Gets the ole color of the foreground. |
getHeight() | Gets the height of the control in unit of points. |
getIMEMode() | Gets the default run-time mode of the Input Method Editor for the control as it receives focus. |
getLinkedCell() | Gets the linked cell. |
getListFillRange() | Gets the list fill range. |
getMouseIcon() | Gets a custom icon to display as the mouse pointer for the control. |
getMousePointer() | Gets the type of icon displayed as the mouse pointer for the control. |
getPicture() | Gets the data of the picture. |
getPicturePosition() | Gets the location of the control’s picture relative to its caption. |
getShadow() | Indicates whether to show a shadow. |
getSpecialEffect() | Gets the special effect of the control. |
getTextAlign() | Represents how to align the text used by the control. |
getType() | Gets the type of the ActiveX control. |
getValue() | Indicates if the control is checked or not. |
getWidth() | Gets the width of the control in unit of points. |
getWorkbook() | Gets the Workbook object. |
hashCode() | |
isAutoSize() | Indicates whether the control will automatically resize to display its entire contents. |
isEnabled() | Indicates whether the control can receive the focus and respond to user-generated events. |
isLocked() | Indicates whether data in the control is locked for editing. |
isTransparent() | Indicates whether the control is transparent. |
isTripleState() | Indicates how the specified control will display Null values. |
isVisible() | Indicates whether this control is visible. |
notify() | |
notifyAll() | |
setAccelerator(char value) | Sets the accelerator key for the control. |
setAutoSize(boolean value) | Indicates whether the control will automatically resize to display its entire contents. |
setBackOleColor(int value) | Sets the ole color of the background. |
setCaption(String value) | Sets the descriptive text that appears on a control. |
setEnabled(boolean value) | Indicates whether the control can receive the focus and respond to user-generated events. |
setForeOleColor(int value) | Sets the ole color of the foreground. |
setHeight(double value) | Sets the height of the control in unit of points. |
setIMEMode(int value) | Sets the default run-time mode of the Input Method Editor for the control as it receives focus. |
setLinkedCell(String value) | Sets the linked cell. |
setListFillRange(String value) | Sets the list fill range. |
setLocked(boolean value) | Indicates whether data in the control is locked for editing. |
setMouseIcon(byte[] value) | Sets a custom icon to display as the mouse pointer for the control. |
setMousePointer(int value) | Sets the type of icon displayed as the mouse pointer for the control. |
setPicture(byte[] value) | Sets the data of the picture. |
setPicturePosition(int value) | Sets the location of the control’s picture relative to its caption. |
setShadow(boolean value) | Indicates whether to show a shadow. |
setSpecialEffect(int value) | Sets the special effect of the control. |
setTextAlign(int value) | Represents how to align the text used by the control. |
setTransparent(boolean value) | Indicates whether the control is transparent. |
setTripleState(boolean value) | Indicates how the specified control will display Null values. |
setValue(int value) | Indicates if the control is checked or not. |
setVisible(boolean value) | Indicates whether this control is visible. |
setWidth(double value) | Sets the width of the control in unit of points. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getAccelerator()
public char getAccelerator()
Gets the accelerator key for the control.
Example
if ('