API Documentation > CorelDRAW > 2025-v26 > Fill > IVGFill
Fill.ApplyPostscriptFill method
Apply a PostScript Fill to the shape
Syntax:
Function ApplyPostscriptFill(ByVal IndexOrName As Variant) As PostScriptFill
Parameters:
Name Type Description
IndexOrName
Variant
Remarks:
The ApplyPostscriptFill method applies a PostScript fill to a shape.
Examples:
The following VBA example creates a rectangle and applies the Bubbles PostScript fill to it.
Sub Test()
Dim s As Shape
Set s = ActiveLayer.CreateRectangle(0, 0, 5, 5)
s.Fill.ApplyPostscriptFill "Bubbles" 
End Sub