public class ArcShape extends Shape
Example
//Instantiate a new Workbook.
Workbook excelbook = new Workbook();
//Add an arc shape.
ArcShape arc1 = excelbook.getWorksheets().get(0).getShapes().addArc(2, 0, 2, 0, 130, 130);
//Set the placement of the arc.
arc1.setPlacement(PlacementType.FREE_FLOATING);
//Set the fill format.
arc1.getFill().setFillType(FillType.SOLID);
arc1.getFill().getSolidFill().setColor(Color.getBlue());
//Set the line style.
arc1.getLine().setCompoundType(MsoLineStyle.SINGLE);
//Set the line weight.
arc1.getLine().setWeight(2);
//Set the color of the arc line.
arc1.getLine().setFillType(FillType.SOLID);
arc1.getLine().getSolidFill().setColor(Color.getRed());
//Set the dash style of the arc.
arc1.getLine().setDashStyle(MsoLineDashStyle.SOLID);
//Add another arc shape.
ArcShape arc2 = excelbook.getWorksheets().get(0).getShapes().addArc(9, 0, 2, 0, 130, 130);
//Set the placement of the arc.
arc2.setPlacement(PlacementType.FREE_FLOATING);
//Set the line style.
arc2.getLine().setCompoundType(MsoLineStyle.SINGLE);
//Set the line weight.
arc2.getLine().setWeight(1);
//Set the color of the arc line.
arc2.getLine().setFillType(FillType.SOLID);
arc2.getLine().getSolidFill().setColor(Color.getBlue());
//Set the dash style of the arc.
arc2.getLine().setDashStyle(MsoLineDashStyle.SOLID);
//Save the excel file.
excelbook.save("tstarcs.xls");
| Modifier and Type | Method and Description |
|---|---|
int |
getBeginArrowheadLength()
Deprecated.
Use Shape.Line.BeginArrowheadLength property instead.
|
int |
getBeginArrowheadStyle()
Deprecated.
Use Shape.Line.BeginArrowheadStyle property instead.
|
int |
getBeginArrowheadWidth()
Deprecated.
Use Shape.Line.BeginArrowheadWidth property instead.
|
int |
getEndArrowheadLength()
Deprecated.
Use Shape.Line.EndArrowheadLength property instead.
|
int |
getEndArrowheadStyle()
Deprecated.
Use Shape.Line.EndArrowheadStyle property instead.
|
int |
getEndArrowheadWidth()
Deprecated.
Use Shape.Line.EndArrowheadWidth property instead.
|
void |
setBeginArrowheadLength(int value)
Deprecated.
Use Shape.Line.BeginArrowheadLength property instead.
|
void |
setBeginArrowheadStyle(int value)
Deprecated.
Use Shape.Line.BeginArrowheadStyle property instead.
|
void |
setBeginArrowheadWidth(int value)
Deprecated.
Use Shape.Line.BeginArrowheadWidth property instead.
|
void |
setEndArrowheadLength(int value)
Deprecated.
Use Shape.Line.EndArrowheadLength property instead.
|
void |
setEndArrowheadStyle(int value)
Deprecated.
Use Shape.Line.EndArrowheadStyle property instead.
|
void |
setEndArrowheadWidth(int value)
Deprecated.
Use Shape.Line.EndArrowheadWidth property instead.
|
addHyperlink, alignTopRightCorner, calculateTextSize, characters, fitToTextSize, formatCharacters, getActiveXControl, getActualBox, getActualLowerRightRow, getAlternativeText, getAnchorType, getAutoShapeType, getBottom, getCharacters, getConnectionPoints, getControlData, getCreateId, getFill, getFillFormat, getFont, getFormatPicture, getGeometry, getGlow, getGroup, getHeight, getHeightCM, getHeightInch, getHeightInShape, getHeightPt, getHeightScale, getHtmlText, getHyperlink, getId, getInputRange, getInputRange, getLeft, getLeftCM, getLeftInch, getLeftInShape, getLeftToCorner, getLine, getLineFormat, getLinkedCell, getLinkedCell, getLockedProperty, getLowerDeltaX, getLowerDeltaY, getLowerRightColumn, getLowerRightRow, getMacroName, getMsoDrawingType, getName, getPaths, getPlacement, getReflection, getRelativeToOriginalPictureSize, getResultOfSmartArt, getRichFormattings, getRight, getRotationAngle, getShadowEffect, getSoftEdges, getSpid, getSpt, getText, getTextBody, getTextBoxOptions, getTextDirection, getTextEffect, getTextHorizontalAlignment, getTextHorizontalOverflow, getTextOptions, getTextOrientationType, getTextShapeType, getTextVerticalAlignment, getTextVerticalOverflow, getThreeDFormat, getTitle, getTop, getTopCM, getTopInch, getTopInShape, getTopToCorner, getType, getUpperDeltaX, getUpperDeltaY, getUpperLeftColumn, getUpperLeftRow, getWidth, getWidthCM, getWidthInch, getWidthInShape, getWidthPt, getWidthScale, getWorksheet, getX, getY, getZOrderPosition, hasLine, isAspectRatioLocked, isDecorative, isEquation, isFilled, isFlippedHorizontally, isFlippedVertically, isGroup, isHidden, isInGroup, isLockAspectRatio, isLocked, isPrintable, isRichText, isSameSetting, isSmartArt, isTextWrapped, isWordArt, moveToRange, removeActiveXControl, removeHyperlink, setAlternativeText, setAnchorType, setAspectRatioLocked, setAutoShapeType, setBottom, setCreateId, setDecorative, setFilled, setFlippedHorizontally, setFlippedVertically, setFont, setHasLine, setHeight, setHeightCM, setHeightInch, setHeightInShape, setHeightPt, setHeightScale, setHidden, setHtmlText, setInputRange, setInputRange, setLeft, setLeftCM, setLeftInch, setLeftInShape, setLeftToCorner, setLinkedCell, setLinkedCell, setLockAspectRatio, setLocked, setLockedProperty, setLowerDeltaX, setLowerDeltaY, setLowerRightColumn, setLowerRightRow, setMacroName, setName, setPlacement, setPrintable, setRelativeToOriginalPictureSize, setRight, setRotationAngle, setSoftEdges, setText, setTextDirection, setTextHorizontalAlignment, setTextHorizontalOverflow, setTextOptions, setTextOrientationType, setTextShapeType, setTextVerticalAlignment, setTextVerticalOverflow, setTextWrapped, setTitle, setTop, setTopCM, setTopInch, setTopInShape, setTopToCorner, setUpperDeltaX, setUpperDeltaY, setUpperLeftColumn, setUpperLeftRow, setWidth, setWidthCM, setWidthInch, setWidthInShape, setWidthPt, setWidthScale, setX, setY, setZOrderPosition, toFrontOrBack, toImage, toImage, toImage, updateSelectedValuepublic int getBeginArrowheadStyle()
See MsoArrowheadStyle.
Remarks
NOTE: This member is now obsolete. Instead, please use Shape.Line.BeginArrowheadStyle property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced.public void setBeginArrowheadStyle(int value)
See MsoArrowheadStyle.
Remarks
NOTE: This member is now obsolete. Instead, please use Shape.Line.BeginArrowheadStyle property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced.public int getBeginArrowheadWidth()
See MsoArrowheadWidth.
Remarks
NOTE: This member is now obsolete. Instead, please use Shape.Line.BeginArrowheadWidth property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced.public void setBeginArrowheadWidth(int value)
See MsoArrowheadWidth.
Remarks
NOTE: This member is now obsolete. Instead, please use Shape.Line.BeginArrowheadWidth property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced.public int getBeginArrowheadLength()
See MsoArrowheadLength.
Remarks
NOTE: This member is now obsolete. Instead, please use Shape.Line.BeginArrowheadLength property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced.public void setBeginArrowheadLength(int value)
See MsoArrowheadLength.
Remarks
NOTE: This member is now obsolete. Instead, please use Shape.Line.BeginArrowheadLength property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced.public int getEndArrowheadStyle()
See MsoArrowheadStyle.
Remarks
NOTE: This member is now obsolete. Instead, please use Shape.Line.EndArrowheadStyle property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced.public void setEndArrowheadStyle(int value)
See MsoArrowheadStyle.
Remarks
NOTE: This member is now obsolete. Instead, please use Shape.Line.EndArrowheadStyle property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced.public int getEndArrowheadWidth()
See MsoArrowheadWidth.
Remarks
NOTE: This member is now obsolete. Instead, please use Shape.Line.EndArrowheadWidth property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced.public void setEndArrowheadWidth(int value)
See MsoArrowheadWidth.
Remarks
NOTE: This member is now obsolete. Instead, please use Shape.Line.EndArrowheadWidth property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced.public int getEndArrowheadLength()
See MsoArrowheadLength.
Remarks
NOTE: This member is now obsolete. Instead, please use Shape.Line.EndArrowheadLength property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced.public void setEndArrowheadLength(int value)
See MsoArrowheadLength.
Remarks
NOTE: This member is now obsolete. Instead, please use Shape.Line.EndArrowheadLength property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.