public class RadioButtonActiveXControl extends ToggleButtonActiveXControl
Example
//Initialize a new workbook.
Workbook book = new Workbook();
//Add a ToggleButtonActiveXControl.
Shape shape = book.getWorksheets().get(0).getShapes().addActiveXControl(ControlType.RADIO_BUTTON, 1, 0, 1, 0, 100, 50);
RadioButtonActiveXControl activeXControl = (RadioButtonActiveXControl)shape.getActiveXControl();
//do your business
//Save the excel file.
book.save("exmaple.xlsx");
| Modifier and Type | Method and Description |
|---|---|
int |
getAlignment()
Gets the position of the Caption relative to the control.
|
java.lang.String |
getGroupName()
Gets the group's name.
|
int |
getType()
Gets the type of the ActiveX control.
|
boolean |
isWordWrapped()
Indicates whether the contents of the control automatically wrap at the end of a line.
|
void |
setAlignment(int value)
Sets the position of the Caption relative to the control.
|
void |
setGroupName(java.lang.String value)
Sets the group's name.
|
void |
setWordWrapped(boolean value)
Indicates whether the contents of the control automatically wrap at the end of a line.
|
getAccelerator, getCaption, getPicture, getPicturePosition, getSpecialEffect, getValue, isTripleState, setAccelerator, setCaption, setPicture, setPicturePosition, setSpecialEffect, setTripleState, setValuegetData, 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.RADIO_BUTTON)
{
//do something
}
getType in class ToggleButtonActiveXControlpublic java.lang.String getGroupName()
Example
activeXControl.setGroupName("GroupName123");
public void setGroupName(java.lang.String value)
public int getAlignment()
See ControlCaptionAlignmentType.
Example
activeXControl.setAlignment(com.aspose.cells.ControlCaptionAlignmentType.LEFT);
public void setAlignment(int value)
public boolean isWordWrapped()
Example
if(activeXControl.isWordWrapped() == false)
{
activeXControl.setWordWrapped(true);
}
public void setWordWrapped(boolean 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.