Line

Line class

Encapsulates the object that represents the line format.

class Line;

Methods

MethodDescription
getCompoundType()Specifies the compound line type
setCompoundType(MsoLineStyle)Specifies the compound line type
getDashType()Specifies the dash line type
setDashType(MsoLineDashStyle)Specifies the dash line type
getCapType()Specifies the ending caps.
setCapType(LineCapType)Specifies the ending caps.
getJoinType()Specifies the joining caps.
setJoinType(LineJoinType)Specifies the joining caps.
getBeginType()Specifies an arrowhead for the begin of a line.
setBeginType(MsoArrowheadStyle)Specifies an arrowhead for the begin of a line.
getEndType()Specifies an arrowhead for the end of a line.
setEndType(MsoArrowheadStyle)Specifies an arrowhead for the end of a line.
getBeginArrowLength()Specifies the length of the arrowhead for the begin of a line.
setBeginArrowLength(MsoArrowheadLength)Specifies the length of the arrowhead for the begin of a line.
getEndArrowLength()Specifies the length of the arrowhead for the end of a line.
setEndArrowLength(MsoArrowheadLength)Specifies the length of the arrowhead for the end of a line.
getBeginArrowWidth()Specifies the width of the arrowhead for the begin of a line.
setBeginArrowWidth(MsoArrowheadWidth)Specifies the width of the arrowhead for the begin of a line.
getEndArrowWidth()Specifies the width of the arrowhead for the end of a line.
setEndArrowWidth(MsoArrowheadWidth)Specifies the width of the arrowhead for the end of a line.
getThemeColor()Gets and sets the theme color.
setThemeColor(ThemeColor)Gets and sets the theme color.
getColor()Represents the System.Drawing.Color of the line.
setColor(Color)Represents the System.Drawing.Color of the line.
getTransparency()Returns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear).
setTransparency(number)Returns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear).
getStyle()Represents the style of the line.
setStyle(LineType)Represents the style of the line.
getWeight()Gets or sets the WeightType of the line.
setWeight(WeightType)Gets or sets the WeightType of the line.
getWeightPt()Gets or sets the weight of the line in unit of points.
setWeightPt(number)Gets or sets the weight of the line in unit of points.
getWeightPx()Gets or sets the weight of the line in unit of pixels.
setWeightPx(number)Gets or sets the weight of the line in unit of pixels.
getFormattingType()Gets or sets format type.
setFormattingType(ChartLineFormattingType)Gets or sets format type.
isAutomaticColor()Indicates whether the color of line is automatic assigned.
isVisible()Represents whether the line is visible.
setIsVisible(boolean)Represents whether the line is visible.
isAuto()Indicates whether this line style is auto assigned.
setIsAuto(boolean)Indicates whether this line style is auto assigned.
getGradientFill()Represents gradient fill.

getCompoundType()

Specifies the compound line type

getCompoundType() : MsoLineStyle;

Returns

MsoLineStyle

setCompoundType(MsoLineStyle)

Specifies the compound line type

setCompoundType(value: MsoLineStyle) : void;

Parameters:

ParameterTypeDescription
valueMsoLineStyleThe value to set.

getDashType()

Specifies the dash line type

getDashType() : MsoLineDashStyle;

Returns

MsoLineDashStyle

setDashType(MsoLineDashStyle)

Specifies the dash line type

setDashType(value: MsoLineDashStyle) : void;

Parameters:

ParameterTypeDescription
valueMsoLineDashStyleThe value to set.

getCapType()

Specifies the ending caps.

getCapType() : LineCapType;

Returns

LineCapType

setCapType(LineCapType)

Specifies the ending caps.

setCapType(value: LineCapType) : void;

Parameters:

ParameterTypeDescription
valueLineCapTypeThe value to set.

getJoinType()

Specifies the joining caps.

getJoinType() : LineJoinType;

Returns

LineJoinType

setJoinType(LineJoinType)

Specifies the joining caps.

setJoinType(value: LineJoinType) : void;

Parameters:

ParameterTypeDescription
valueLineJoinTypeThe value to set.

getBeginType()

Specifies an arrowhead for the begin of a line.

getBeginType() : MsoArrowheadStyle;

Returns

MsoArrowheadStyle

setBeginType(MsoArrowheadStyle)

Specifies an arrowhead for the begin of a line.

setBeginType(value: MsoArrowheadStyle) : void;

Parameters:

ParameterTypeDescription
valueMsoArrowheadStyleThe value to set.

getEndType()

Specifies an arrowhead for the end of a line.

getEndType() : MsoArrowheadStyle;

Returns

MsoArrowheadStyle

setEndType(MsoArrowheadStyle)

Specifies an arrowhead for the end of a line.

setEndType(value: MsoArrowheadStyle) : void;

Parameters:

ParameterTypeDescription
valueMsoArrowheadStyleThe value to set.

getBeginArrowLength()

Specifies the length of the arrowhead for the begin of a line.

getBeginArrowLength() : MsoArrowheadLength;

Returns

MsoArrowheadLength

setBeginArrowLength(MsoArrowheadLength)

Specifies the length of the arrowhead for the begin of a line.

setBeginArrowLength(value: MsoArrowheadLength) : void;

Parameters:

ParameterTypeDescription
valueMsoArrowheadLengthThe value to set.

getEndArrowLength()

Specifies the length of the arrowhead for the end of a line.

getEndArrowLength() : MsoArrowheadLength;

Returns

MsoArrowheadLength

setEndArrowLength(MsoArrowheadLength)

Specifies the length of the arrowhead for the end of a line.

setEndArrowLength(value: MsoArrowheadLength) : void;

Parameters:

ParameterTypeDescription
valueMsoArrowheadLengthThe value to set.

getBeginArrowWidth()

Specifies the width of the arrowhead for the begin of a line.

getBeginArrowWidth() : MsoArrowheadWidth;

Returns

MsoArrowheadWidth

setBeginArrowWidth(MsoArrowheadWidth)

Specifies the width of the arrowhead for the begin of a line.

setBeginArrowWidth(value: MsoArrowheadWidth) : void;

Parameters:

ParameterTypeDescription
valueMsoArrowheadWidthThe value to set.

getEndArrowWidth()

Specifies the width of the arrowhead for the end of a line.

getEndArrowWidth() : MsoArrowheadWidth;

Returns

MsoArrowheadWidth

setEndArrowWidth(MsoArrowheadWidth)

Specifies the width of the arrowhead for the end of a line.

setEndArrowWidth(value: MsoArrowheadWidth) : void;

Parameters:

ParameterTypeDescription
valueMsoArrowheadWidthThe value to set.

getThemeColor()

Gets and sets the theme color.

getThemeColor() : ThemeColor;

Returns

ThemeColor

Remarks

If the foreground color is not a theme color, NULL will be returned.

setThemeColor(ThemeColor)

Gets and sets the theme color.

setThemeColor(value: ThemeColor) : void;

Parameters:

ParameterTypeDescription
valueThemeColorThe value to set.

Remarks

If the foreground color is not a theme color, NULL will be returned.

getColor()

Represents the System.Drawing.Color of the line.

getColor() : Color;

Returns

Color

setColor(Color)

Represents the System.Drawing.Color of the line.

setColor(value: Color) : void;

Parameters:

ParameterTypeDescription
valueColorThe value to set.

getTransparency()

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

getTransparency() : number;

setTransparency(number)

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

setTransparency(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getStyle()

Represents the style of the line.

getStyle() : LineType;

Returns

LineType

setStyle(LineType)

Represents the style of the line.

setStyle(value: LineType) : void;

Parameters:

ParameterTypeDescription
valueLineTypeThe value to set.

getWeight()

Gets or sets the WeightType of the line.

getWeight() : WeightType;

Returns

WeightType

setWeight(WeightType)

Gets or sets the WeightType of the line.

setWeight(value: WeightType) : void;

Parameters:

ParameterTypeDescription
valueWeightTypeThe value to set.

getWeightPt()

Gets or sets the weight of the line in unit of points.

getWeightPt() : number;

setWeightPt(number)

Gets or sets the weight of the line in unit of points.

setWeightPt(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getWeightPx()

Gets or sets the weight of the line in unit of pixels.

getWeightPx() : number;

setWeightPx(number)

Gets or sets the weight of the line in unit of pixels.

setWeightPx(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getFormattingType()

Gets or sets format type.

getFormattingType() : ChartLineFormattingType;

Returns

ChartLineFormattingType

setFormattingType(ChartLineFormattingType)

Gets or sets format type.

setFormattingType(value: ChartLineFormattingType) : void;

Parameters:

ParameterTypeDescription
valueChartLineFormattingTypeThe value to set.

isAutomaticColor()

Indicates whether the color of line is automatic assigned.

isAutomaticColor() : boolean;

isVisible()

Represents whether the line is visible.

isVisible() : boolean;

setIsVisible(boolean)

Represents whether the line is visible.

setIsVisible(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

isAuto()

Indicates whether this line style is auto assigned.

isAuto() : boolean;

setIsAuto(boolean)

Indicates whether this line style is auto assigned.

setIsAuto(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getGradientFill()

Represents gradient fill.

getGradientFill() : GradientFill;

Returns

GradientFill