asposecells.api
Class Line

Encapsulates the object that represents the line format.

Example:

workbook = Workbook()
cells = workbook.getWorksheets().get(0).getCells()
cells.get("a1").putValue(2)
cells.get("a2").putValue(5)
cells.get("a3").putValue(3)
cells.get("a4").putValue(6)
cells.get("b1").putValue(4)
cells.get("b2").putValue(3)
cells.get("b3").putValue(6)
cells.get("b4").putValue(7)
chartIndex = workbook.getWorksheets().get(0).getCharts().add(ChartType.COLUMN, 11, 0, 27, 10)
chart = workbook.getWorksheets().get(0).getCharts().get(chartIndex)
chart.getNSeries().add("A1:B4", True)
# Applying a dotted line style on the lines of an NSeries
chart.getNSeries().get(0).getLine().setStyle(LineType.DOT)
# Applying a triangular marker style on the data markers of an NSeries
chart.getNSeries().get(0).setMarkerStyle(ChartMarkerType.TRIANGLE)
# Setting the weight of all lines in an NSeries to medium
chart.getNSeries().get(0).getLine().setWeight(WeightType.MEDIUM_LINE)

Property Getters/Setters Summary
methodgetBeginArrowLength()
methodsetBeginArrowLength(value)
           Specifies the length of the arrowhead for the begin of a line. The value of the property is MsoArrowheadLength integer constant.
methodgetBeginArrowWidth()
methodsetBeginArrowWidth(value)
           Specifies the width of the arrowhead for the begin of a line. The value of the property is MsoArrowheadWidth integer constant.
methodgetBeginType()
methodsetBeginType(value)
           Specifies an arrowhead for the begin of a line. The value of the property is MsoArrowheadStyle integer constant.
methodgetCapType()
methodsetCapType(value)
           Specifies the ending caps. The value of the property is LineCapType integer constant.
methodgetColor()
methodsetColor(value)
           Represents the com.aspose.cells.Color of the line.
methodgetCompoundType()
methodsetCompoundType(value)
           Specifies the compound line type The value of the property is MsoLineStyle integer constant.
methodgetDashType()
methodsetDashType(value)
           Specifies the dash line type The value of the property is MsoLineDashStyle integer constant.
methodgetEndArrowLength()
methodsetEndArrowLength(value)
           Specifies the length of the arrowhead for the end of a line. The value of the property is MsoArrowheadLength integer constant.
methodgetEndArrowWidth()
methodsetEndArrowWidth(value)
           Specifies the width of the arrowhead for the end of a line. The value of the property is MsoArrowheadWidth integer constant.
methodgetEndType()
methodsetEndType(value)
           Specifies an arrowhead for the end of a line. The value of the property is MsoArrowheadStyle integer constant.
methodgetFormattingType()
methodsetFormattingType(value)
           Gets or sets format type. The value of the property is ChartLineFormattingType integer constant.
methodgetGradientFill()
           Represents gradient fill.
methodisAuto()
methodsetAuto(value)
           Indicates whether this line style is auto assigned.
methodisAutomaticColor()
           Indicates whether the color of line is auotmatic assigned.
methodisVisible()
methodsetVisible(value)
           Represents whether the line is visible.
methodgetJoinType()
methodsetJoinType(value)
           Specifies the joining caps. The value of the property is LineJoinType integer constant.
methodgetStyle()
methodsetStyle(value)
           Represents the style of the line. The value of the property is LineType integer constant.
methodgetThemeColor()
methodsetThemeColor(value)
           Gets and sets the theme color.
methodgetTransparency()
methodsetTransparency(value)
           Returns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear).
methodgetWeight()
methodsetWeight(value)
           Gets or sets the WeightType of the line. The value of the property is WeightType integer constant.
methodgetWeightPt()
methodsetWeightPt(value)
           Gets or sets the weight of the line in unit of points.
methodgetWeightPx()
methodsetWeightPx(value)
           Gets or sets the weight of the line in uni of pixels.
 

Property Getters/Setters Detail

getCompoundType/setCompoundType : int 

int getCompoundType() / setCompoundType(value)
Specifies the compound line type The value of the property is MsoLineStyle integer constant.

getDashType/setDashType : int 

int getDashType() / setDashType(value)
Specifies the dash line type The value of the property is MsoLineDashStyle integer constant.

getCapType/setCapType : int 

int getCapType() / setCapType(value)
Specifies the ending caps. The value of the property is LineCapType integer constant.

getJoinType/setJoinType : int 

int getJoinType() / setJoinType(value)
Specifies the joining caps. The value of the property is LineJoinType integer constant.

getBeginType/setBeginType : int 

int getBeginType() / setBeginType(value)
Specifies an arrowhead for the begin of a line. The value of the property is MsoArrowheadStyle integer constant.

getEndType/setEndType : int 

int getEndType() / setEndType(value)
Specifies an arrowhead for the end of a line. The value of the property is MsoArrowheadStyle integer constant.

getBeginArrowLength/setBeginArrowLength : int 

int getBeginArrowLength() / setBeginArrowLength(value)
Specifies the length of the arrowhead for the begin of a line. The value of the property is MsoArrowheadLength integer constant.

getEndArrowLength/setEndArrowLength : int 

int getEndArrowLength() / setEndArrowLength(value)
Specifies the length of the arrowhead for the end of a line. The value of the property is MsoArrowheadLength integer constant.

getBeginArrowWidth/setBeginArrowWidth : int 

int getBeginArrowWidth() / setBeginArrowWidth(value)
Specifies the width of the arrowhead for the begin of a line. The value of the property is MsoArrowheadWidth integer constant.

getEndArrowWidth/setEndArrowWidth : int 

int getEndArrowWidth() / setEndArrowWidth(value)
Specifies the width of the arrowhead for the end of a line. The value of the property is MsoArrowheadWidth integer constant.

getThemeColor/setThemeColor : ThemeColor 

ThemeColor getThemeColor() / setThemeColor(value)
Gets and sets the theme color. If the forground color is not a theme color, NULL will be returned.

getColor/setColor : Color 

Color getColor() / setColor(value)
Represents the com.aspose.cells.Color of the line.

getTransparency/setTransparency : float 

float getTransparency() / setTransparency(value)
Returns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear).

getStyle/setStyle : int 

int getStyle() / setStyle(value)
Represents the style of the line. The value of the property is LineType integer constant.

getWeight/setWeight : int 

int getWeight() / setWeight(value)
Gets or sets the WeightType of the line. The value of the property is WeightType integer constant.

getWeightPt/setWeightPt : float 

float getWeightPt() / setWeightPt(value)
Gets or sets the weight of the line in unit of points.

getWeightPx/setWeightPx : float 

float getWeightPx() / setWeightPx(value)
Gets or sets the weight of the line in uni of pixels.

getFormattingType/setFormattingType : int 

int getFormattingType() / setFormattingType(value)
Gets or sets format type. The value of the property is ChartLineFormattingType integer constant.

isAutomaticColor : boolean 

boolean isAutomaticColor()
Indicates whether the color of line is auotmatic assigned.

isVisible/setVisible : boolean 

boolean isVisible() / setVisible(value)
Represents whether the line is visible.

isAuto/setAuto : boolean 

boolean isAuto() / setAuto(value)
Indicates whether this line style is auto assigned.

getGradientFill : GradientFill 

GradientFill getGradientFill()
Represents gradient fill.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.