public class ComboBox
Example:
//Create a new Workbook.
Workbook workbook = new Workbook();
//Get the first worksheet.
Worksheet sheet = workbook.getWorksheets().get(0);
//Get the worksheet cells collection.
Cells cells = sheet.getCells();
//Input a value.
cells.get("B3").putValue("Employee:");
Cell cell = cells.get("B3");
Style style = cell.getStyle();
//Set it bold.
style.getFont().setBold(true);
cell.setStyle(style);
//Input some values that denote the input range
//for the combo box.
cells.get("A2").putValue("Emp001");
cells.get("A3").putValue("Emp002");
cells.get("A4").putValue("Emp003");
cells.get("A5").putValue("Emp004");
cells.get("A6").putValue("Emp005");
cells.get("A7").putValue("Emp006");
//Add a new combo box.
ComboBox comboBox = (ComboBox)sheet.getShapes().addShape(MsoDrawingType.COMBO_BOX, 2, 0, 2, 0, 22, 100);
//Set the linked cell;
comboBox.setLinkedCell("A1");
//Set the input range.
comboBox.setInputRange("A2:A7");
//Set no. of list lines displayed in the combo
//box's list portion.
comboBox.setDropDownLines(5);
//Set the combo box with 3-D shading.
comboBox.setShadow(true);
//AutoFit Columns
sheet.autoFitColumns();
//Saves the file.
workbook.save("d:\\test\\tstcombobox.xls");
Property Getters/Setters Summary | ||
---|---|---|
ActiveXControl | getActiveXControl() | |
Gets the ActiveX control.
|
||
int | getActualLowerRightRow() | |
Get the actual bottom row.
|
||
java.lang.String | getAlternativeText() | |
void | setAlternativeText(java.lang.Stringvalue) | |
Returns or sets the descriptive (alternative) text string of the |
||
int | getAutoShapeType() | |
void | setAutoShapeType(intvalue) | |
Gets the auto shape type. The value of the property is AutoShapeType integer constant. | ||
int | getBottom() | |
void | setBottom(intvalue) | |
Represents the width of the shape's vertical offset from its lower bottom corner row, in unit of pixels. | ||
java.awt.geom.Point2D.Float[] | getConnectionPoints() | |
Get the connection points
|
||
byte[] | getControlData() | |
Gets the data of control.
|
||
int | getDropDownLines() | |
void | setDropDownLines(intvalue) | |
Gets or sets the number of list lines displayed in the drop-down portion of a combo box. | ||
FillFormat | getFill() | |
Returns a |
||
MsoFillFormat | getFillFormat() | |
Returns a MsoFillFormat object that contains fill formatting properties for the specified shape.
|
||
Font | getFont() | |
void | ||
Represents the font of shape. | ||
ShapeFormat | getFormat() | |
Represents the setting of the shape's formatting.
|
||
MsoFormatPicture | getFormatPicture() | |
Gets and sets the options of the picture format.
|
||
Geometry | getGeometry() | |
Gets the geometry
|
||
GlowEffect | getGlow() | |
Represents a object that specifies glow effect for the chart element or shape.
|
||
GroupShape | getGroup() | |
Gets the group shape which contains this shape.
|
||
boolean | hasLine() | |
void | setHasLine(booleanvalue) | |
Gets and sets the line border of the shape is visible. | ||
int | getHeight() | |
void | setHeight(intvalue) | |
Represents the height of shape, in unit of pixel. | ||
double | getHeightCM() | |
void | setHeightCM(doublevalue) | |
Represents the height of the shape, in unit of inches. | ||
double | getHeightInch() | |
void | setHeightInch(doublevalue) | |
Represents the height of the shape, in unit of inches. | ||
int | getHeightInChart() | |
void | setHeightInChart(intvalue) | |
Represents the vertical offset of shape from the top border of the parent shape, in unit of 1/4000 of height of the parent shape.. | ||
int | getHeightInShape() | |
void | setHeightInShape(intvalue) | |
Represents the vertical offset of shape from the top border of the parent shape, in unit of 1/4000 of height of the parent shape.. | ||
double | getHeightPt() | |
void | setHeightPt(doublevalue) | |
Represents the height of the shape, in unit of points. | ||
int | getHeightScale() | |
void | setHeightScale(intvalue) | |
Gets and sets the height scale,in unit of percent of the original picture height. If the shape is not picture ,the HeightScale property only returns 100; | ||
java.lang.String | getHtmlText() | |
void | setHtmlText(java.lang.Stringvalue) | |
Gets and sets the html string which contains data and some formats in this textbox. | ||
Hyperlink | getHyperlink() | |
Gets the hyperlink of the shape.
|
||
int | getId() | |
Gets the identifier of this shape.
|
||
java.lang.String | getInputRange() | |
void | setInputRange(java.lang.Stringvalue) | |
Gets or sets the worksheet range used to fill the specified combo box. | ||
boolean | isEquation() | |
Inidicates whether the shape only contains an equation.
|
||
boolean | isFilled() | |
void | setFilled(booleanvalue) | |
Indicates whether the fill format is visible. | ||
boolean | isFlippedHorizontally() | |
void | setFlippedHorizontally(booleanvalue) | |
Gets and sets whether shape is horizontally flipped . | ||
boolean | isFlippedVertically() | |
void | setFlippedVertically(booleanvalue) | |
Gets and sets whether shape is vertically flipped . | ||
boolean | isGroup() | |
Indicates whether the shape is a group.
|
||
boolean | isHidden() | |
void | setHidden(booleanvalue) | |
Indicates whether the object is visible. | ||
boolean | isLockAspectRatio() | |
void | setLockAspectRatio(booleanvalue) | |
True means that don't allow changes in aspect ratio. | ||
boolean | isLocked() | |
void | setLocked(booleanvalue) | |
True if the object is locked, False if the object can be modified when the sheet is protected. | ||
boolean | isPrintable() | |
void | setPrintable(booleanvalue) | |
True if the object is printable | ||
boolean | isRichText() | |
Whether or not the text is rich text.
|
||
boolean | isSmartArt() | |
Inidicates whether the shape is smart art.
|
||
boolean | isTextWrapped() | |
void | setTextWrapped(booleanvalue) | |
Gets and sets the text wrapped type of the shape which contains text. | ||
boolean | isWordArt() | |
Indicates whether this shape is a word art.
|
||
int | getLeft() | |
void | setLeft(intvalue) | |
Represents the horizontal offset of shape from its left column, in unit of pixels. | ||
double | getLeftCM() | |
void | setLeftCM(doublevalue) | |
Represents the horizontal offset of shape from its left column, in unit of centimeters. | ||
double | getLeftInch() | |
void | setLeftInch(doublevalue) | |
Represents the horizontal offset of shape from its left column, in unit of inches. | ||
int | getLeftInChart() | |
void | setLeftInChart(intvalue) | |
Represents the vertical offset of shape from the left border of the parent shape, in unit of 1/4000 of width of the parent shape. | ||
int | getLeftInShape() | |
void | setLeftInShape(intvalue) | |
Represents the horizontal offset of shape from the left border of the parent shape, in unit of 1/4000 of width of the parent shape. | ||
int | getLeftToCorner() | |
void | setLeftToCorner(intvalue) | |
Gets and sets the horizonal offset of shape from worksheet left border. | ||
LineFormat | getLine() | |
Gets line style
|
||
MsoLineFormat | getLineFormat() | |
Returns a MsoLineFormat object that contains line formatting properties for the specified shape.
|
||
java.lang.String | getLinkedCell() | |
void | setLinkedCell(java.lang.Stringvalue) | |
Gets or sets the worksheet range linked to the control's value. | ||
int | getLowerDeltaX() | |
void | setLowerDeltaX(intvalue) | |
Gets or sets the shape's horizontal offset from its lower right corner column.
|
||
int | getLowerDeltaY() | |
void | setLowerDeltaY(intvalue) | |
Gets or sets the shape's vertical offset from its lower right corner row.
|
||
int | getLowerRightColumn() | |
void | setLowerRightColumn(intvalue) | |
Represents lower right corner column index. | ||
int | getLowerRightRow() | |
void | setLowerRightRow(intvalue) | |
Represents lower right corner row index. | ||
java.lang.String | getMacroName() | |
void | setMacroName(java.lang.Stringvalue) | |
Gets and sets the name of macro. | ||
int | getMsoDrawingType() | |
Gets and sets mso drawing type.
The value of the property is MsoDrawingType integer constant. |
||
java.lang.String | getName() | |
void | setName(java.lang.Stringvalue) | |
Gets and sets the name of the shape. | ||
ShapePathCollection | getPaths() | |
Gets the paths of a custom geometric shape.
|
||
int | getPlacement() | |
void | setPlacement(intvalue) | |
Represents the way the drawing object is attached to the cells below it. The property controls the placement of an object on a worksheet. The value of the property is PlacementType integer constant. | ||
int | getPositionX() | |
void | setPositionX(intvalue) | |
Gets and sets the horizonal offset of shape from worksheet left border,in unit of pixels. | ||
int | getPositionY() | |
void | setPositionY(intvalue) | |
Gets and sets the vertical offset of shape from worksheet top border,in unit of pixels. | ||
ReflectionEffect | getReflection() | |
Represents a object that specifies reflection effect for the chart element or shape.
|
||
boolean | getRelativeToOriginalPictureSize() | |
void | setRelativeToOriginalPictureSize(booleanvalue) | |
Indicates whether shape is relative to original picture size. | ||
int | getRight() | |
void | setRight(intvalue) | |
Represents the width of the shape's horizontal offset from its lower right corner column, in unit of pixels. | ||
double | getRotationAngle() | |
void | setRotationAngle(doublevalue) | |
Gets and sets the rotation of the shape. | ||
Cell | getSelectedCell() | |
Gets the selected cell in the input range of the combo box.
|
||
int | getSelectedIndex() | |
void | setSelectedIndex(intvalue) | |
Gets or sets the index number of the currently selected item in a list box or combo box. Zero-based. | ||
java.lang.String | getSelectedValue() | |
Gets the selected value of the combox box.
|
||
boolean | getShadow() | |
void | setShadow(booleanvalue) | |
Indicates whether the combobox has 3-D shading. | ||
ShadowEffect | getShadowEffect() | |
Represents a object that specifies shadow effect for the chart element or shape.
|
||
double | getSoftEdges() | |
void | setSoftEdges(doublevalue) | |
Gets and sets the radius of blur to apply to the edges, in unit of points. | ||
java.lang.String | getSpid() | |
Specifies an optional string that an application can use to Identify the particular shape.
|
||
int | getSpt() | |
Specifies an optional number that an application can use to associate the particular shape with a defined shape type.
|
||
java.lang.String | getText() | |
void | setText(java.lang.Stringvalue) | |
Represents the string in this TextBox object. | ||
FontSettingCollection | getTextBody() | |
Gets and ses the setting of the shape's text.
|
||
int | getTextDirection() | |
void | setTextDirection(intvalue) | |
Gets/Sets the direction of the text flow for this object. The value of the property is TextDirectionType integer constant. | ||
TextEffectFormat | getTextEffect() | |
Returns a TextEffectFormat object that contains text-effect formatting properties for the specified shape.
Applies to Shape objects that represent WordArt.
|
||
MsoTextFrame | getTextFrame() | |
Returns a TextFrame object that contains the alignment and anchoring properties for the specified shape.
|
||
int | getTextHorizontalAlignment() | |
void | setTextHorizontalAlignment(intvalue) | |
Gets and sets the text horizontal alignment type of the shape. The value of the property is TextAlignmentType integer constant. | ||
int | getTextHorizontalOverflow() | |
void | setTextHorizontalOverflow(intvalue) | |
Gets and sets the text horizontal overflow type of the shape which contains text. The value of the property is TextOverflowType integer constant. | ||
TextOptions | getTextOptions() | |
void | setTextOptions(TextOptions value) | |
Represents the text options of the shape. | ||
int | getTextOrientationType() | |
void | setTextOrientationType(intvalue) | |
Gets and sets the text orientation type of the shape. The value of the property is TextOrientationType integer constant. | ||
int | getTextShapeType() | |
void | setTextShapeType(intvalue) | |
Gets and sets the preset text shape type. The value of the property is AutoShapeType integer constant. | ||
int | getTextVerticalAlignment() | |
void | setTextVerticalAlignment(intvalue) | |
Gets and sets the text vertical alignment type of the shape. The value of the property is TextAlignmentType integer constant. | ||
int | getTextVerticalOverflow() | |
void | setTextVerticalOverflow(intvalue) | |
Gets and sets the text vertical overflow type of the shape which contains text. The value of the property is TextOverflowType integer constant. | ||
ThreeDFormat | getThreeDFormat() | |
Gets and sets 3d format of the shape.
|
||
java.lang.String | getTitle() | |
void | setTitle(java.lang.Stringvalue) | |
Specifies the title (caption) of the current shape object. | ||
int | getTop() | |
void | setTop(intvalue) | |
Represents the vertical offset of shape from its top row, in unit of pixels. | ||
double | getTopCM() | |
void | setTopCM(doublevalue) | |
Represents the vertical offset of shape from its top row, in unit of centimeters. | ||
double | getTopInch() | |
void | setTopInch(doublevalue) | |
Represents the vertical offset of shape from its top row, in unit of inches. | ||
int | getTopInChart() | |
void | setTopInChart(intvalue) | |
Represents the vertical offset of shape from the top border of the parent shape, in unit of 1/4000 of height of the parent shape. | ||
int | getTopInShape() | |
void | setTopInShape(intvalue) | |
Represents the vertical offset of shape from the top border of the parent shape, in unit of 1/4000 of height of the parent shape. | ||
int | getTopToCorner() | |
void | setTopToCorner(intvalue) | |
Gets and sets the vertical offset of shape from worksheet top boder,in unit of pixel | ||
int | getType() | |
Gets the auto shape type.
The value of the property is AutoShapeType integer constant. |
||
int | getUpperDeltaX() | |
void | setUpperDeltaX(intvalue) | |
Gets or sets the shape's horizontal offset from its upper left corner column.
|
||
int | getUpperDeltaY() | |
void | setUpperDeltaY(intvalue) | |
Gets or sets the shape's vertical offset from its upper left corner row.
|
||
int | getUpperLeftColumn() | |
void | setUpperLeftColumn(intvalue) | |
Represents upper left corner column index. | ||
int | getUpperLeftRow() | |
void | setUpperLeftRow(intvalue) | |
Represents upper left corner row index. | ||
int | getWidth() | |
void | setWidth(intvalue) | |
Represents the width of shape, in unit of pixels. | ||
double | getWidthCM() | |
void | setWidthCM(doublevalue) | |
Represents the width of the shape, in unit of centimeters. | ||
double | getWidthInch() | |
void | setWidthInch(doublevalue) | |
Represents the width of the shape, in unit of inch. | ||
int | getWidthInChart() | |
void | setWidthInChart(intvalue) | |
Represents the width of the shape, in unit of 1/4000 of the parent shape. | ||
int | getWidthInShape() | |
void | setWidthInShape(intvalue) | |
Represents the width of the shape, in unit of 1/4000 of the parent shape. | ||
double | getWidthPt() | |
void | setWidthPt(doublevalue) | |
Represents the width of the shape, in unit of point. | ||
int | getWidthScale() | |
void | setWidthScale(intvalue) | |
Gets and sets the width scale, in unit of percent of the original picture width. If the shape is not picture ,the WidthScale property only returns 100; | ||
int | getX() | |
void | setX(intvalue) | |
Gets and sets the horizontal offset of shape from worksheet left border,in unit of pixels. | ||
int | getY() | |
void | setY(intvalue) | |
Gets and sets the vertical offset of shape from worksheet top border,in unit of pixels. | ||
int | getZOrderPosition() | |
void | setZOrderPosition(intvalue) | |
Returns the position of a shape in the z-order. |
Method Summary | ||
---|---|---|
Hyperlink | addHyperlink(java.lang.String address) | |
Adds a hyperlink to the shape.
|
||
void | alignTopRightCorner(int topRow, int rightColumn) | |
Moves the picture to the top-right corner.
|
||
int[] | calculateTextSize() | |
Recalculate the text area
|
||
FontSetting | characters(int startIndex, int length) | |
Returns a Characters object that represents a range of characters within the text.
|
||
void | formatCharacters(int startIndex, int length, Font font) | |
Format some chararcters with the font setting.
|
||
void | formatCharacters(int startIndex, int length, Font font, StyleFlag flag) | |
Format some chararcters with the font setting.
|
||
java.util.ArrayList | getCharacters() | |
Returns all Characters objects
that represents a range of characters within the text .
|
||
java.lang.String | getInputRange(boolean isR1C1, boolean isLocal) | |
Gets the range used to fill the control.
|
||
java.lang.String | getLinkedCell(boolean isR1C1, boolean isLocal) | |
Gets the range linked to the control's value.
|
||
boolean | getLockedProperty(int type) | |
Gets the value of locked property.
|
||
GroupShape | getResultOfSmartArt() | |
Converting smart art to grouped shapes.
|
||
void | moveToRange(int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn) | |
Moves the shape to a specified range.
|
||
void | removeActiveXControl() | |
Remove activeX control.
|
||
void | removeHyperlink() | |
Remove the hyperlink of the shape.
|
||
void | setInputRange(java.lang.String formula, boolean isR1C1, boolean isLocal) | |
Sets the range used to fill the control.
|
||
void | setLinkedCell(java.lang.String formula, boolean isR1C1, boolean isLocal) | |
Sets the range linked to the control's value.
|
||
void | setLockedProperty(int type, boolean value) | |
Set the locked property.
|
||
void | toFrontOrBack(int orders) | |
Brings the shape to the front or sends the shape to back.
|
||
void | toImage(java.io.OutputStream stream, ImageFormat imageFormat) | |
Creates the shape image and saves it to a stream in the specified format.
|
||
void | toImage(java.io.OutputStream stream, ImageOrPrintOptions options) | |
Saves the shape to a stream.
|
||
void | toImage(java.lang.String imageFile, ImageOrPrintOptions options) | |
Saves the shape to a file.
|
||
void | updateSelectedValue() | |
Update the selected value by the value of the linked cell.
|
public int getSelectedIndex() / public void setSelectedIndex(int value)
public java.lang.String getSelectedValue()
public Cell getSelectedCell()
public boolean getShadow() / public void setShadow(boolean value)
public int getDropDownLines() / public void setDropDownLines(int value)
public java.lang.String getMacroName() / public void setMacroName(java.lang.String value)
public boolean isEquation()
public boolean isSmartArt()
public int getZOrderPosition() / public void setZOrderPosition(int value)
public java.lang.String getName() / public void setName(java.lang.String value)
public java.lang.String getAlternativeText() / public void setAlternativeText(java.lang.String value)
public java.lang.String getTitle() / public void setTitle(java.lang.String value)
public MsoLineFormat getLineFormat()
public MsoFillFormat getFillFormat()
public ShapeFormat getFormat()
public LineFormat getLine()
public FillFormat getFill()
public ShadowEffect getShadowEffect()
public ReflectionEffect getReflection()
public GlowEffect getGlow()
public double getSoftEdges() / public void setSoftEdges(double value)
public ThreeDFormat getThreeDFormat()
public MsoTextFrame getTextFrame()
public MsoFormatPicture getFormatPicture()
public boolean isHidden() / public void setHidden(boolean value)
public boolean isLockAspectRatio() / public void setLockAspectRatio(boolean value)
public double getRotationAngle() / public void setRotationAngle(double value)
public Hyperlink getHyperlink()
public int getId()
public java.lang.String getSpid()
public int getSpt()
public boolean isGroup()
public boolean isWordArt()
public TextEffectFormat getTextEffect()
public boolean isLocked() / public void setLocked(boolean value)
public boolean isPrintable() / public void setPrintable(boolean value)
public int getMsoDrawingType()
public int getAutoShapeType() / public void setAutoShapeType(int value)
public int getPlacement() / public void setPlacement(int value)
public int getUpperLeftRow() / public void setUpperLeftRow(int value)
public int getUpperDeltaY() / public void setUpperDeltaY(int value)
public int getUpperLeftColumn() / public void setUpperLeftColumn(int value)
public int getUpperDeltaX() / public void setUpperDeltaX(int value)
public int getLowerRightRow() / public void setLowerRightRow(int value)
public int getLowerDeltaY() / public void setLowerDeltaY(int value)
public int getLowerRightColumn() / public void setLowerRightColumn(int value)
public int getLowerDeltaX() / public void setLowerDeltaX(int value)
public int getRight() / public void setRight(int value)
public int getBottom() / public void setBottom(int value)
public int getWidth() / public void setWidth(int value)
public double getWidthInch() / public void setWidthInch(double value)
public double getWidthPt() / public void setWidthPt(double value)
public double getWidthCM() / public void setWidthCM(double value)
public int getHeight() / public void setHeight(int value)
public double getHeightInch() / public void setHeightInch(double value)
public double getHeightPt() / public void setHeightPt(double value)
public double getHeightCM() / public void setHeightCM(double value)
public int getLeft() / public void setLeft(int value)
public double getLeftInch() / public void setLeftInch(double value)
public double getLeftCM() / public void setLeftCM(double value)
public int getTop() / public void setTop(int value)
public double getTopInch() / public void setTopInch(double value)
public double getTopCM() / public void setTopCM(double value)
public int getTopToCorner() / public void setTopToCorner(int value)
public int getLeftToCorner() / public void setLeftToCorner(int value)
public int getX() / public void setX(int value)
public int getY() / public void setY(int value)
public int getWidthScale() / public void setWidthScale(int value)
public int getHeightScale() / public void setHeightScale(int value)
public int getTopInShape() / public void setTopInShape(int value)
public int getLeftInShape() / public void setLeftInShape(int value)
public int getWidthInShape() / public void setWidthInShape(int value)
public int getHeightInShape() / public void setHeightInShape(int value)
public int getHeightInChart() / public void setHeightInChart(int value)
public int getLeftInChart() / public void setLeftInChart(int value)
public int getTopInChart() / public void setTopInChart(int value)
public int getWidthInChart() / public void setWidthInChart(int value)
public int getPositionX() / public void setPositionX(int value)
public int getPositionY() / public void setPositionY(int value)
public GroupShape getGroup()
public int getType()
public boolean hasLine() / public void setHasLine(boolean value)
public boolean isFilled() / public void setFilled(boolean value)
public boolean isFlippedHorizontally() / public void setFlippedHorizontally(boolean value)
public boolean isFlippedVertically() / public void setFlippedVertically(boolean value)
public int getActualLowerRightRow()
public java.awt.geom.Point2D.Float[] getConnectionPoints()
public boolean getRelativeToOriginalPictureSize() / public void setRelativeToOriginalPictureSize(boolean value)
public java.lang.String getLinkedCell() / public void setLinkedCell(java.lang.String value)
public java.lang.String getInputRange() / public void setInputRange(java.lang.String value)
public int getTextShapeType() / public void setTextShapeType(int value)
public FontSettingCollection getTextBody()
public Font getFont() / public void setFont(Font value)
public TextOptions getTextOptions() / public void setTextOptions(TextOptions value)
public java.lang.String getText() / public void setText(java.lang.String value)
public boolean isRichText()
public java.lang.String getHtmlText() / public void setHtmlText(java.lang.String value)
public int getTextVerticalOverflow() / public void setTextVerticalOverflow(int value)
public int getTextHorizontalOverflow() / public void setTextHorizontalOverflow(int value)
public boolean isTextWrapped() / public void setTextWrapped(boolean value)
public int getTextOrientationType() / public void setTextOrientationType(int value)
public int getTextHorizontalAlignment() / public void setTextHorizontalAlignment(int value)
public int getTextVerticalAlignment() / public void setTextVerticalAlignment(int value)
public int getTextDirection() / public void setTextDirection(int value)
public byte[] getControlData()
public ActiveXControl getActiveXControl()
public ShapePathCollection getPaths()
public Geometry getGeometry()
public java.lang.String getLinkedCell(boolean isR1C1, boolean isLocal)
isR1C1
- Whether the formula needs to be formatted as R1C1.isLocal
- Whether the formula needs to be formatted by locale.public void setLinkedCell(java.lang.String formula, boolean isR1C1, boolean isLocal)
formula
- The range linked to the control's value.isR1C1
- Whether the formula needs to be formatted as R1C1.isLocal
- Whether the formula needs to be formatted by locale.public java.lang.String getInputRange(boolean isR1C1, boolean isLocal)
isR1C1
- Whether the formula needs to be formatted as R1C1.isLocal
- Whether the formula needs to be formatted by locale.public void setInputRange(java.lang.String formula, boolean isR1C1, boolean isLocal)
formula
- The range used to fill the control.isR1C1
- Whether the formula needs to be formatted as R1C1.isLocal
- Whether the formula needs to be formatted by locale.public void updateSelectedValue() throws java.lang.Exception
public int[] calculateTextSize() throws java.lang.Exception
public void formatCharacters(int startIndex, int length, Font font, StyleFlag flag)
startIndex
- The start index.length
- The the length.font
- The font setting.flag
- The flag of the font setting.public void formatCharacters(int startIndex, int length, Font font)
startIndex
- The start index.length
- The the length.font
- The font setting.public FontSetting characters(int startIndex, int length)
startIndex
- The index of the start of the character.length
- The number of characters.public java.util.ArrayList getCharacters()
public void removeActiveXControl()
public void toImage(java.io.OutputStream stream, ImageFormat imageFormat) throws java.lang.Exception
The following formats are supported: .bmp, .gif, .jpg, .jpeg, .tiff, .emf.
stream
- The output stream.imageFormat
- The format in which to save the image.public void toImage(java.lang.String imageFile, ImageOrPrintOptions options) throws java.lang.Exception
public void toImage(java.io.OutputStream stream, ImageOrPrintOptions options) throws java.lang.Exception
public GroupShape getResultOfSmartArt() throws java.lang.Exception
public void toFrontOrBack(int orders)
orders
-
If it's less than zero, sens the shape to back.
If it's greater than zero, brings the shape to front.
public boolean getLockedProperty(int type)
type
- A public void setLockedProperty(int type, boolean value)
type
- A value
- The value of the property.public Hyperlink addHyperlink(java.lang.String address)
address
- Address of the hyperlink.public void removeHyperlink()
public void moveToRange(int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn)
upperLeftRow
- Upper left row index.upperLeftColumn
- Upper left column index.lowerRightRow
- Lower right row indexlowerRightColumn
- Lower right column indexpublic void alignTopRightCorner(int topRow, int rightColumn)
topRow
- the row index.rightColumn
- the column index.