RGBColor Interface

Represents a single color in a color scheme.

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

Syntax

'Declaration
<GuidAttribute("91493470-5A91-11CF-8700-00AA0060263B")> _
Public Interface RGBColor
'Usage
Dim instance As RGBColor
[GuidAttribute("91493470-5A91-11CF-8700-00AA0060263B")]
public interface RGBColor

Examples

Use the ColorScheme method to return an RGBColor object. You can set an RGBColor object to another RGBColor object. You can use the RGB property to set or return the explicit red-green-blue value for an RGBColor object, with the exception of the RGBColor objects defined by the ppNotSchemeColor and ppSchemeColorMixed constants. The RGB property can be returned, but not set, for these two objects. The following example sets the background color in color scheme one in the active presentation to red and sets the title color to the title color that's defined for color scheme two.

With ActivePresentation.ColorSchemes

    .Item(1).Colors(ppBackground).RGB = RGB(255, 0, 0)

    .Item(1).Colors(ppTitle) = .Item(2).Colors(ppTitle)

End With

See Also

Reference

RGBColor Members

Microsoft.Office.Interop.PowerPoint Namespace