Share via


Point.MarkerBackgroundColorIndex Property

Returns or sets the marker background color as an index into the current color palette, or as one of the following [XlColorIndex#SameCHM] constants: xlColorIndexAutomatic or xlColorIndexNone. Applies only to line, scatter, and radar charts. Read/write Long.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property MarkerBackgroundColorIndex As XlColorIndex
    Get
    Set
'Usage
Dim instance As Point
Dim value As XlColorIndex

value = instance.MarkerBackgroundColorIndex

instance.MarkerBackgroundColorIndex = value
XlColorIndex MarkerBackgroundColorIndex { get; set; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.XlColorIndex

Examples

This example sets the marker background and foreground colors for the second point in series one for the first chart in the active document.

With ActivePresentation.Slides(1).Shapes(1)

    If .HasChart Then

        With .Chart.SeriesCollection(1).Points(2)

            ' Set the background color to green.

            .MarkerBackgroundColorIndex= 4



            ' Set the foreground color to red.

            .MarkerForegroundColorIndex = 3

        End With

    End If

End With

See Also

Reference

Point Interface

Point Members

Microsoft.Office.Interop.PowerPoint Namespace