Previous Document Next Document

Object Model Reference : Classes : P : PatternFill : Methods : PatternFill.Load


PatternFill.Load

Function Load(FileName As String) As Boolean

Description

Member of PatternFill

The Load method imports a bitmap or vector pattern to use as a pattern fill.

Parameter
Description
FileName
Specifies the full path and filename of the graphic to be imported

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.