Interface ISelector
- All Superinterfaces:
ICellLinkControl,ICellLinkControlT<Integer>,IControl
- All Known Subinterfaces:
IDropDown,IListBox,ISelectorT<T,TCollection>
Represents a control that allows a user to select items from among its child elements.
-
Method Summary
Modifier and TypeMethodDescriptionGets the items source of this control.intGets the selected index of this control.voidsetItemsSourceRange(IRange value) Sets the items source of this control.voidsetSelectedIndex(int value) Sets the selected index of this control.Methods inherited from interface com.grapecity.documents.excel.forms.ICellLinkControl
getDisplay3DShading, getLinkedCell, setDisplay3DShading, setLinkedCellMethods inherited from interface com.grapecity.documents.excel.forms.ICellLinkControlT
getValue, setValueMethods inherited from interface com.grapecity.documents.excel.forms.IControl
bringToFront, 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, setWidth
-
Method Details
-
getItemsSourceRange
IRange getItemsSourceRange()Gets the items source of this control. This property can't be used if items were added toISelectorT.Items.This property doesn't handle #REF! errors. #REF! will be treated as an empty collection.
-
setItemsSourceRange
Sets the items source of this control. This property can't be used if items were added toISelectorT.Items.This property doesn't handle #REF! errors. #REF! will be treated as an empty collection.
-
getSelectedIndex
int getSelectedIndex()Gets the selected index of this control.- API Note:
- Not fully supported by the *.ssjson format.The index could cause
IndexOutOfBoundsExceptionif items are lost.
-
setSelectedIndex
void setSelectedIndex(int value) Sets the selected index of this control.- API Note:
- Not fully supported by the *.ssjson format.The index could cause
IndexOutOfBoundsExceptionif items are lost.
-