Bagikan melalui


ChartColorFormat.SchemeColor Property (Word)

Returns or sets the index of a color in the current color scheme. Read/write Long.

Version Information

Version Added: Word 2007

Syntax

expression .SchemeColor

expression A variable that represents a ChartColorFormat object.

Example

The following example sets the visibility, foreground color, background color, and gradient for the chart area fill of the first chart in the active document.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 With .Chart.ChartArea.Fill 
 .Visible = True 
 .ForeColor.SchemeColor = 15 
 .BackColor.SchemeColor = 17 
 .TwoColorGradient msoGradientHorizontal, 1 
 End With 
 End If 
End With 

See Also

Concepts

ChartColorFormat Object

ChartColorFormat Object Members