Plate.Color 屬性 (Publisher)

會傳回 ColorFormat 物件,此物件代表指定之物件的色彩資訊。

語法

運算式顏色

表達 代表 Plate 物件的變數。

範例

本範例會測試使用中檔內第一個本文的字型色彩,並告訴使用者字型色彩是否為黑色。

Sub FontColor() 
 
 If Application.ActiveDocument.Stories(1) _ 
 .TextRange.Font.Color.RGB = RGB(Red:=0, Green:=0, Blue:=0) Then 
 MsgBox "Your font color is black" 
 Else 
 MsgBox "Your font color is not black" 
 End If 
 
End Sub

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應