Partager via


RGBColor.RGB Property

Returns or sets the red-green-blue (RGB) value of a specified color-scheme color or extra color when used with a PpColorSchemeIndex constant. Read/write.

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

Syntax

'Declaration
Property RGB As Integer
    Get
    Set
'Usage
Dim instance As RGBColor
Dim value As Integer

value = instance.RGB

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

Property Value

Type: System.Int32

Remarks

Use the Colors method to return a RGBColor object.

The value of the RGB property can be one of the following PpColorSchemeIndex constants:

ppAccent1

ppAccent2

ppAccent3

ppBackground

ppFill

ppForeground

ppShadow

ppTitle

See Also

Reference

RGBColor Interface

RGBColor Members

Microsoft.Office.Interop.PowerPoint Namespace