Loads Pattern file
Syntax:
Function Load(ByVal FileName As String) As Boolean
Parameters:
Name Type Description
FileName
String
Remarks:
The Load method imports a bitmap or vector pattern to use as a pattern fill.
Examples:
The following VBA example applies a two-color pattern fill and then loads a pattern from a file.
Sub Test()
Dim s As Shape
Dim pf As PatternFill
Set s = ActiveLayer.CreateRectangle(0, 0, 4, 4)
Set pf = s.Fill.ApplyPatternFill(cdrTwoColorPattern)
pf.Load SetupPath & "Custom Data\Bumpmap\Stlplate.cpt" 
End Sub