Point.MarkerBackgroundColor 屬性 (Word)Point.MarkerBackgroundColor property (Word)

設定資料標記的背景色彩的 RGB 值或傳回相對應的色彩索引值。Sets the marker background color as an RGB value or returns the corresponding color index value. 讀取/寫入Read/write Long.

語法Syntax

運算式MarkerBackgroundColorexpression.MarkerBackgroundColor

_運算式_代表 '' 物件的變數。expression A variable that represents a 'Point' object.

註解Remarks

此屬性僅適用於折線圖、散佈圖及雷達圖。This property applies only to line, scatter, and radar charts.

範例Example

下列範例會設定使用中文件內第一張圖表之第一個數列中第二個資料點的標記背景色彩及前景色彩。The following example sets the marker background and foreground colors for the second point in series one for the first chart in the active document.

With ActiveDocument.InlineShapes(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

Point 物件Point Object

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.