API Documentation > CorelDRAW > 2025-v26 > TrapLayer > IPrnVBATrapLayer
TrapLayer.Density property
Specifies the neutral density for the in-RIP trapping layer
Syntax:
Property Get Density() As Double
Property Let Density(ByVal Value As Double)
Remarks:
The Density property returns or specifies the neutral density of a color.
Examples:
The following VBA example displays the density of the yellow plate.
Sub Test()
Dim intCounter As Integer
With ActiveDocument.PrintSettings.Trapping
  For intCounter = 1 To .Layers.Count - 1

 If .Layers.Item(intCounter).Color = "Yellow" Then


MsgBox "The density of the yellow plate is " & _


  .Layers.Item(intCounter).Density

 End If
  Next intCounter
End With 
End Sub