Previous Document Next Document

Object Model Reference : Classes : P : PostScriptFill : Methods : PostScriptFill.SetProperties


PostScriptFill.SetProperties

Sub SetProperties(Param1 As Long, [Param2 As Long], [Param3 As Long], [Param4 As Long], [Param5 As Long])

Description

Member of PostScriptFill

The SetProperties method allows you to set all the properties of a PostScript fill at the same time.

 
The SetProperties method has placeholders for a maximum of five PostScript fill properties.

Parameter
Description
Param1
Specifies the first property of a PostScript fill. For example, the Param1 value of the Bars fill is Width.
Param2
Specifies the second property of a PostScript fill. For example, the Param2 value of the Bars fill references the Spacing (%) of the fill.
This parameter is optional, and its default value is 0.
Param3
Specifies the third property of a PostScript fill. For example, the Param3 value of the Bars fill references the Maximum gray value of the fill. This parameter is optional, and its default value is 0.
Param4
Specifies the fourth property of a PostScript fill. For example, the Param4 value of the Bars fill references the Minimum gray value of the fill. This parameter is optional, and its default value is 0.
Param5
Specifies the fifth property of a PostScript fill. For example, the Param5 value of the Checks fill references the Line width value of the fill. This parameter is optional, and its default value is 0.

VBA example

The following VBA example applies applies the ColorBubbles pattern to a rectangle and specifies the following fill properties: Number of circles = 10, Max size=300, Min Size=100, Line Width = 26, and Random Seed = 10.

Sub Test()
 Dim s As Shape
 Dim pf As PostScriptFill
 Set s = ActiveLayer.CreateRectangle(0, 0, 4, 4)
 Set pf = s.Fill.ApplyPostscriptFill("ColorBubbles")
 pf.SetProperties 10, 300, 100, 26, 10
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.