public class LineFormat extends FillFormat
Example
//Instantiating a Workbook object
Workbook workbook = new Workbook();
ShapeCollection shapes = workbook.getWorksheets().get(0).getShapes();
Shape shape = shapes.addRectangle(1, 0, 1, 0, 50, 100);
LineFormat lineFmt = shape.getLine();
//do your business
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Determines whether this instance has the same value as another specified
LineFormat object. |
int |
getBeginArrowheadLength()
Gets the begin arrow length type of the line.
|
int |
getBeginArrowheadStyle()
Gets the begin arrow type of the line.
|
int |
getBeginArrowheadWidth()
Gets the begin arrow width type of the line.
|
int |
getCapType()
Specifies the ending caps.
|
int |
getCompoundType()
Specifies the line compound type.
|
int |
getDashStyle()
Specifies the line dash type.
|
int |
getEndArrowheadLength()
Gets the end arrow length type of the line.
|
int |
getEndArrowheadStyle()
Gets the end arrow type of the line.
|
int |
getEndArrowheadWidth()
Gets the end arrow width type of the line.
|
int |
getJoinType()
Specifies the line join type.
|
double |
getWeight()
Gets the weight of the line in unit of points.
|
int |
hashCode()
Gets the hash code.
|
void |
setBeginArrowheadLength(int value)
Sets the begin arrow length type of the line.
|
void |
setBeginArrowheadStyle(int value)
Sets the begin arrow type of the line.
|
void |
setBeginArrowheadWidth(int value)
Sets the begin arrow width type of the line.
|
void |
setCapType(int value)
Specifies the ending caps.
|
void |
setCompoundType(int value)
Specifies the line compound type.
|
void |
setDashStyle(int value)
Specifies the line dash type.
|
void |
setEndArrowheadLength(int value)
Sets the end arrow length type of the line.
|
void |
setEndArrowheadStyle(int value)
Sets the end arrow type of the line.
|
void |
setEndArrowheadWidth(int value)
Sets the end arrow width type of the line.
|
void |
setJoinType(int value)
Specifies the line join type.
|
void |
setWeight(double value)
Sets the weight of the line in unit of points.
|
getFillType, getGradientColor1, getGradientColor2, getGradientColorType, getGradientDegree, getGradientFill, getGradientStyle, getGradientVariant, getImageData, getPattern, getPatternFill, getPictureFormatType, getPresetColor, getScale, getSetType, getSolidFill, getTexture, getTextureFill, getTransparency, getType, setFillType, setImageData, setOneColorGradient, setPattern, setPictureFormatType, setPresetColorGradient, setScale, setSetType, setTexture, setTransparency, setTwoColorGradient, setTwoColorGradient, setTypepublic int hashCode()
Example
int hashCode = lineFmt.hashCode();
hashCode in class FillFormatpublic boolean equals(java.lang.Object obj)
LineFormat object.
Example
//You have to make sure that the index value in this line of code exists
LineFormat obj = workbook.getWorksheets().get(0).getShapes().get(0).getLine();
if (lineFmt.equals(obj))
{
//do what you want
}
equals in class FillFormatobj - The LineFormat object to compare with this instance.public int getCompoundType()
See MsoLineStyle.
Example
lineFmt.setCompoundType(MsoLineStyle.SINGLE);
public void setCompoundType(int value)
See MsoLineStyle.
public int getDashStyle()
See MsoLineDashStyle.
Example
lineFmt.setDashStyle(MsoLineDashStyle.SOLID);
public void setDashStyle(int value)
See MsoLineDashStyle.
public int getCapType()
public void setCapType(int value)
See LineCapType.
public int getJoinType()
public void setJoinType(int value)
See LineJoinType.
public int getBeginArrowheadStyle()
See MsoArrowheadStyle.
Example
lineFmt.setBeginArrowheadStyle(MsoArrowheadStyle.ARROW_OPEN);
public void setBeginArrowheadStyle(int value)
See MsoArrowheadStyle.
public int getBeginArrowheadWidth()
See MsoArrowheadWidth.
Example
lineFmt.setBeginArrowheadWidth(MsoArrowheadWidth.MEDIUM);
public void setBeginArrowheadWidth(int value)
See MsoArrowheadWidth.
public int getBeginArrowheadLength()
See MsoArrowheadLength.
Example
lineFmt.setBeginArrowheadLength(MsoArrowheadLength.LONG);
public void setBeginArrowheadLength(int value)
See MsoArrowheadLength.
public int getEndArrowheadStyle()
See MsoArrowheadStyle.
Example
lineFmt.setEndArrowheadStyle(MsoArrowheadStyle.ARROW_OPEN);
public void setEndArrowheadStyle(int value)
See MsoArrowheadStyle.
public int getEndArrowheadWidth()
See MsoArrowheadWidth.
Example
lineFmt.setEndArrowheadWidth(MsoArrowheadWidth.MEDIUM);
public void setEndArrowheadWidth(int value)
See MsoArrowheadWidth.
public int getEndArrowheadLength()
See MsoArrowheadLength.
Example
lineFmt.setEndArrowheadLength(MsoArrowheadLength.LONG);
public void setEndArrowheadLength(int value)
See MsoArrowheadLength.
public double getWeight()
Example
lineFmt.setWeight(2.0d);
public void setWeight(double value)
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.