Line Class

Encapsulates the object that represents the line format.
Inheritance Hierarchy

Namespace:  Aspose.Cells.Drawing
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 21.7.0.0 (21.7)
Syntax
public class Line

The Line type exposes the following members.

Properties
  NameDescription
Public propertyBeginArrowLength
Specifies the length of the arrowhead for the begin of a line.
Public propertyBeginArrowWidth
Specifies the width of the arrowhead for the begin of a line.
Public propertyBeginType
Specifies an arrowhead for the begin of a line.
Public propertyCapType
Specifies the ending caps.
Public propertyColor
Represents the Color of the line.
Public propertyCompoundType
Specifies the compound line type
Public propertyDashType
Specifies the dash line type
Public propertyEndArrowLength
Specifies the length of the arrowhead for the end of a line.
Public propertyEndArrowWidth
Specifies the width of the arrowhead for the end of a line.
Public propertyEndType
Specifies an arrowhead for the end of a line.
Public propertyFormattingType
Gets or sets format type.
Public propertyGradientFill
Represents gradient fill.
Public propertyIsAuto
Indicates whether this line style is auto assigned.
Public propertyIsAutomaticColor
Indicates whether the color of line is auotmatic assigned.
Public propertyIsVisible
Represents whether the line is visible.
Public propertyJoinType
Specifies the joining caps.
Public propertyStyle
Represents the style of the line.
Public propertyThemeColor
Gets and sets the theme color.
Public propertyTransparency
Returns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear).
Public propertyWeight
Gets or sets the WeightType of the line.
Public propertyWeightPt
Gets or sets the weight of the line in unit of points.
Public propertyWeightPx
Gets or sets the weight of the line in unit of pixels.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Fields
  NameDescription
Protected fieldm_lineParent
Examples
[C#]
//Applying a dotted line style on the lines of an NSeries
chart.NSeries[0].Border.Style = LineType.Dot;
chart.NSeries[0].Border.Color = Color.Red;
//Applying a triangular marker style on the data markers of an NSeries
chart.NSeries[0].MarkerStyle = ChartMarkerType.Triangle;
//Setting the weight of all lines in an NSeries to medium
chart.NSeries[1].Border.Weight = WeightType.MediumLine;
chart.NSeries[1].Border.Color = Color.Green;

[Visual Basic]

'Applying a dotted line style on the lines of an NSeries
chart.NSeries(0).Border.Style = LineType.Dot
chart.NSeries(0).Border.Color = Color.Red
'Applying a triangular marker style on the data markers of an NSeries
chart.NSeries(0).MarkerStyle = ChartMarkerType.Triangle
'Setting the weight of all lines in an NSeries to medium
chart.NSeries(1).Border.Weight = WeightType.MediumLine
See Also