com.aspose.words
Class Forms2OleControlType

java.lang.Object
    extended by com.aspose.words.Forms2OleControlType

public class Forms2OleControlType 
extends java.lang.Object

Utility class containing constants. Enumerates types of Forms 2.0 controls.

Example:

Shows how to change state of the CheckBox control.
Document doc = new Document(getMyDir() + "ActiveX controls.docx");

Shape shape = (Shape)doc.getChild(NodeType.SHAPE, 0, true);
CheckBoxControl checkBoxControl = (CheckBoxControl)shape.getOleFormat().getOleControl();
checkBoxControl.setChecked(true);

Assert.assertEquals(true, checkBoxControl.getChecked());
Assert.assertEquals(Forms2OleControlType.CHECK_BOX, checkBoxControl.getType());

Field Summary
static final intOPTION_BUTTON = 0
           A radio button control.
static final intLABEL = 1
           A control that displays text.
static final intTEXTBOX = 2
           A control that allows the user to enter text.
static final intCHECK_BOX = 3
           A control that allows the user to select or deselect an option.
static final intTOGGLE_BUTTON = 4
           A control that allows the user to toggle between two states.
static final intSPIN_BUTTON = 5
           A control that allows the user to increase or decrease a value.
static final intCOMBO_BOX = 6
           A control that allows the user to select an item from a list.
static final intFRAME = 7
           A control that groups other controls.
static final intMULTI_PAGE = 8
           A control that displays multiple pages of content.
static final intTAB_STRIP = 9
           A control that allows the user to switch between multiple pages of content.
static final intCOMMAND_BUTTON = 10
           A button that triggers an action when clicked.
static final intIMAGE = 11
           A control that displays an image.
static final intSCROLL_BAR = 12
           A control that allows the user to scroll through content.
static final intFORM = 13
           A container for other controls.
static final intLIST_BOX = 14
           A control that displays a list of items.
 

Field Detail

OPTION_BUTTON = 0

public static final int OPTION_BUTTON
A radio button control.

LABEL = 1

public static final int LABEL
A control that displays text.

TEXTBOX = 2

public static final int TEXTBOX
A control that allows the user to enter text.

CHECK_BOX = 3

public static final int CHECK_BOX
A control that allows the user to select or deselect an option.

TOGGLE_BUTTON = 4

public static final int TOGGLE_BUTTON
A control that allows the user to toggle between two states.

SPIN_BUTTON = 5

public static final int SPIN_BUTTON
A control that allows the user to increase or decrease a value.

COMBO_BOX = 6

public static final int COMBO_BOX
A control that allows the user to select an item from a list.

FRAME = 7

public static final int FRAME
A control that groups other controls.

MULTI_PAGE = 8

public static final int MULTI_PAGE
A control that displays multiple pages of content.

TAB_STRIP = 9

public static final int TAB_STRIP
A control that allows the user to switch between multiple pages of content.

COMMAND_BUTTON = 10

public static final int COMMAND_BUTTON
A button that triggers an action when clicked.

IMAGE = 11

public static final int IMAGE
A control that displays an image.

SCROLL_BAR = 12

public static final int SCROLL_BAR
A control that allows the user to scroll through content.

FORM = 13

public static final int FORM
A container for other controls.

LIST_BOX = 14

public static final int LIST_BOX
A control that displays a list of items.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.