Share via


Point.MarkerBackgroundColor Property

Sets the marker background color as an RGB value or returns the corresponding color index value. 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 MarkerBackgroundColor As Integer
    Get
    Set
'Usage
Dim instance As Point
Dim value As Integer

value = instance.MarkerBackgroundColor

instance.MarkerBackgroundColor = value
int MarkerBackgroundColor { get; set; }

Property Value

Type: System.Int32

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.

            .MarkerBackgroundColor= RGB(0,255,0)



            ' Set the foreground color to red.

            .MarkerForegroundColor = RGB(255,0,0)

        End With

    End If

End With

See Also

Reference

Point Interface

Point Members

Microsoft.Office.Interop.PowerPoint Namespace