Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class ComboBox

java.lang.Object
  extended by com.aspose.cells.Shape
      extended by com.aspose.cells.ComboBox

public class ComboBox
extends Shape


Method Summary
 int getDropDownLines()
          Gets the number of list lines displayed in the drop-down portion of a combo box.
 java.lang.String getInputRange()
          Gets the worksheet range used to fill the specified combo box.
 java.lang.String getLinkedCell()
          Gets the worksheet range linked to the control's value
 Cell getSelectedCell()
          Gets the selected cell in the input range of the combo box.
 int getSelectedIndex()
          Gets the index number of the currently selected item in the combo box.
 boolean isShadow()
          Indicates whether the combobox has 3-D shading.
 void setDropDownLines(int dropDownLines)
          Sets the number of list lines displayed in the drop-down portion of a combo box.
 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 of currently selected item in the combo box.
 void setShadow(boolean flag)
          Sets whether the combobox has 3-D shading.
 
Methods inherited from class com.aspose.cells.Shape
addHyperlink, getCharacters, getFill, getFont, getGroup, getHeight, getHeightCM, getHeightInch, getHeightInChart, getHyperlink, getLeft, getLeftCM, getLeftInch, getLeftInChart, getLine, getLowerRightColumn, getLowerRightRow, getName, getOrientation, getPlacement, getRotation, getText, getTextHorizontalAlignment, getTextVerticalAlignment, getTop, getTopCM, getTopInch, getTopInChart, getType, getUpperLeftColumn, getUpperLeftRow, getWidth, getWidthCM, getWidthInch, getWidthInChart, getZOrderPosition, hasLine, isFilled, isFlippedHorizontally, isFlippedVertically, isLockAspectRatio, isLocked, isPrintable, move, move, moveToCenter, setCharacters, setFilled, setFlippedHorizontally, setFlippedVertically, setFont, setHasLine, setHeight, setHeightCM, setHeightInch, setHeightInChart, setLeft, setLeftCM, setLeftInch, setLeftInChart, setLeftPosition, setLeftPositionInPixel, setLockAspectRatio, setLocked, setName, setOrientation, setPlacement, setPrintable, setRotation, setText, setTextHorizontalAlignment, setTextVerticalAlignment, setTop, setTopCM, setTopInch, setTopInChart, setTopPosition, setTopPositionInPixel, setUpperLeftColumn, setUpperLeftRow, setWidth, setWidthCM, setWidthInch, setWidthInChart
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLinkedCell

public java.lang.String getLinkedCell()
Gets the worksheet range linked to the control's value

Overrides:
getLinkedCell in class Shape
Returns:
the worksheet range linked to the control's value

setLinkedCell

public void setLinkedCell(java.lang.String formula)
Sets the worksheet range linked to the control's value

Overrides:
setLinkedCell in class Shape
Parameters:
formula - the worksheet range linked to the control's value

getInputRange

public java.lang.String getInputRange()
Gets the worksheet range used to fill the specified combo box.

Returns:
the worksheet range used to fill the specified combo box.

setInputRange

public void setInputRange(java.lang.String formula)
Sets the worksheet range used to fill the specified combo box.

Parameters:
formula - the worksheet range used to fill the specified combo box.

isShadow

public boolean isShadow()
Indicates whether the combobox has 3-D shading.

Returns:
true if the combobox has 3-D shading.

setShadow

public void setShadow(boolean flag)
Sets whether the combobox has 3-D shading.

Parameters:
flag - true if the combobox has 3-D shading.

getDropDownLines

public int getDropDownLines()
Gets the number of list lines displayed in the drop-down portion of a combo box.

Returns:
the number of list lines displayed in the drop-down portion of a combo box.

setDropDownLines

public void setDropDownLines(int dropDownLines)
Sets the number of list lines displayed in the drop-down portion of a combo box.

Parameters:
dropDownLines - the number of list lines displayed in the drop-down portion of a combo box.

getSelectedIndex

public int getSelectedIndex()
Gets the index number of the currently selected item in the combo box. Index is Zero-based. -1 means no item is selected.

Returns:
the index number of the currently selected item in the combo box.

setSelectedIndex

public void setSelectedIndex(int index)
Sets the index of currently selected item in the combo box. Index is Zero-based. -1 means no item is selected.

Parameters:
index - the index number of the currently selected item in the combo box. -1 means no item is selected.

getSelectedCell

public Cell getSelectedCell()
Gets the selected cell in the input range of the combo box.

Returns:
the selected cell in the input range of the combo box.