DashStyle Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
ChartLineDashStyleEnum
ChartLineDashStyleEnum can be one of these ChartLineDashStyleEnum constants. |
chLineDash |
chLineDashDot |
chLineDashDotDot |
chLineLongDash |
chLineLongDashDot |
chLineRoundDot |
chLineSolid |
chLineSquareDot |
expression.DashStyle
expression Required. An expression that returns a ChLine or ChBorder object.
Remarks
This property is valid only for series lines.
Example
This example changes the first chart in Chartspace1 to a line chart and then formats the line for the first data series in the chart.
Sub Set_Series_LineStyle()
Dim chConstants
Dim serSeries1
Set chConstants = ChartSpace1.Constants
' Change the chart to a line chart.
ChartSpace1.Charts(0).Type = chChartTypeLine
' Set a variable to refer to the first data series in the chart.
Set serSeries1 = ChartSpace1.Charts(0).SeriesCollection(0)
' Set the miter of the line of the first series.
serSeries1.Line.Miter = chConstants.chLineMiterBevel
' Set the line weight of the first series.
serSeries1.Line.Weight = chConstants.owcLineWeightThick
' Set the line style of the first series.
serSeries1.Line.DashStyle = chConstants.chLineRoundDot
End Sub