![]() |
||
Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate |
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.cells.Shape
com.aspose.cells.ListBox
public class ListBox
Method Summary | |
---|---|
java.lang.String |
getInputRange()
Gets the worksheet range used to fill the specified combo box. |
int |
getItemCount()
Gets the number of items in the list box. |
java.lang.String |
getLinkedCell()
Gets the worksheet range linked to the control's value |
Cell |
getSelectedCell()
Gets the selected cell. |
Cell[] |
getSelectedCells()
Gets the selected cells. |
int |
getSelectedIndex()
Gets the index number of the currently selected item in the list box. |
byte |
getSelectionType()
Gets the selection mode of the specified list box. |
boolean |
isSelected(int index)
Indicates whether the item is selected. |
boolean |
isShadow()
Indicates whether the shape has 3-D shading. |
void |
setHeight(int height)
Sets the height, in unit of pixel. |
void |
setInputRange(java.lang.String formula)
Sets the worksheet range used to fill the specified combo box. |
void |
setLinkedCell(java.lang.String formula)
Sets the worksheet range linked to the control's value |
void |
setSelectedIndex(int index)
Sets the index number of the currently selected item in the list box. |
void |
setSelectedItem(int index,
boolean selected)
Sets whether the item is selected. |
void |
setSelectionType(byte type)
Sets the selection mode of the specified list box. |
void |
setShadow(boolean flag)
Sets whether the shape has 3-D shading. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setHeight(int height)
Shape
setHeight
in class Shape
height
- the height, in unit of pixel.public java.lang.String getLinkedCell()
getLinkedCell
in class Shape
public void setLinkedCell(java.lang.String formula)
setLinkedCell
in class Shape
formula
- the worksheet range linked to the control's valuepublic java.lang.String getInputRange()
public void setInputRange(java.lang.String formula)
formula
- the worksheet range used to fill the specified combo box.public boolean isShadow()
public void setShadow(boolean flag)
flag
- true if the shape has 3-D shading.public int getItemCount()
public int getSelectedIndex()
public void setSelectedIndex(int index)
index
- the index number of the currently selected item in the list box. -1 means no item is selected.public void setSelectedItem(int index, boolean selected)
index
- the item index. Zero-based.selected
- whether the item is selected.
true means that this item should be selected. false means that this item should be unselected.public boolean isSelected(int index)
index
- the item index
public Cell[] getSelectedCells()
public Cell getSelectedCell()
public byte getSelectionType()
public void setSelectionType(byte type)
type
- the selection mode of the specified list box.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |