ChartColorFormat.RGB Property

Returns or sets the red-green-blue (RGB) value of the specified color. Read/write.

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

Syntax

'Declaration
ReadOnly Property RGB As Integer
    Get
'Usage
Dim instance As ChartColorFormat
Dim value As Integer

value = instance.RGB
int RGB { get; }

Property Value

Type: System.Int32
MsoRGBType

Examples

This example sets the background color for color scheme three in the active presentation and then applies the color scheme to all slides in the presentation that are based on the slide master.

With ActivePresentation

    Set cs1 = .ColorSchemes(3)

    cs1.Colors(ppBackground).RGB= RGB(128, 128, 0)

    .SlideMaster.ColorScheme = cs1

End With

See Also

Reference

ChartColorFormat Interface

ChartColorFormat Members

Microsoft.Office.Interop.PowerPoint Namespace