Previous Document Next Document

Object Model Reference : Classes : A : Application : Methods : Application.CreatePatternCanvas


Application.CreatePatternCanvas

Function CreatePatternCanvas() As PatternCanvas

Description

Member of Application

The CreatePatternCanvas method creates an empty PatternCanvas object.

VBA example

The following VBA example creates an empty pattern canvas and copies another pattern to this canvas. A rectangle is filled with this pattern, and then the data of the pattern is changed.

Sub Test()
 Dim c As PatternCanvas
 Set c = CreatePatternCanvas
 c.PutCopy PatternCanvases(29)
 With ActiveLayer.CreateRectangle(0, 0, 2, 2)
  .Fill.ApplyPatternFill cdrTwoColorPattern
  .Fill.Pattern.Canvas = c
  c.Data = "%%['$aH,&A5&0C"
 End With
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.