共用方式為


Publisher () 的 Plates 物件

發行集中 Plate 物件的集合。

註解

Plates 集合是由 Plate 物件的各種出版物色彩模式。 每個出版物只能使用一個色彩模式。 例如,您無法指定的程序中的特別色模式並稍後指定印刷色模式。

使用 Add 方法可將新的分色板新增至 Plates 集合。

使用 FindPlateByInkName 方法可傳回特定分色板參照油墨名稱。 印刷色指派給不同 分色板 集合比 PrintablePlates 集合中的索引編號。

使用 FindPlateByInkName 方法可確保存取所需的 Plate 物件。

範例

本範例會建立一個新的特別色分色板集合並在其中新增一個分色板。

Sub AddNewPlates() 
 Dim plts As Plates 
 Set plts = ActiveDocument.CreatePlateCollection(Mode:=pbColorModeSpot) 
 plts.Add 
 With plts(1) 
 .Color.RGB = RGB(Red:=255, Green:=0, Blue:=0) 
 .Luminance = 4 
 End With 
End Sub

本範例會建立特別色分色板集合、 將兩個分色板新增到其中,並再將那些分色板輸入特別色模式。

Sub CreateSpotColorMode() 
 Dim plArray As Plates 
 
 With ThisDocument 
 'Creates a color plate collection, 
 'which contains one black plate by default 
 Set plArray = .CreatePlateCollection(Mode:=pbColorModeSpot) 
 
 'Sets the plate color to red 
 plArray(1).Color.RGB = RGB(255, 0, 0) 
 
 'Adds another plate, black by default and 
 'sets the plate color to green 
 plArray.Add 
 plArray(2).Color.RGB = RGB(0, 255, 0) 
 
 'Enters spot-color mode with above 
 'two plates in the plates array 
 .EnterColorMode Mode:=pbColorModeSpot, Plates:=plArray 
 End With 
End Sub

方法

屬性

另請參閱

支援和意見反應

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