This documentation is archived and is not being maintained.

Marker Object

Visual Studio .NET 2003

A marker that identifies a data point on a chart.




The following example sets a blue X marker style for a chart series.

Option Explicit
Option Base 1
Private Sub Command1_Click()
   ' Display Markers for Series 1.
   Dim i As Integer
   For i = 1 To MSChart1.Plot.SeriesCollection.Count
      With MSChart1.Plot.SeriesCollection _
         .Visible = True
         .Size = 20
         .Style = VtMarkerStyleX
         .FillColor.Automatic = False
         .FillColor.Set 0, 0, 255
      End With
   Next i
End Sub

See Also

Properties, Methods, and Events | DataPoint Object