![]() |
![]() |
PatternCanvases.Item
Property Item(Index As Long) As PatternCanvas
Member of PatternCanvases
The Item property returns or sets a reference to a specified pattern canvas in the PatternCanvases collection.
The Item property is the default property, and its reference can be omitted when accessing an items in the collection. For example, PatternCanvases.Item(2)
is the same as PatternCanvases(2)
they both reference the second pattern canvas in the collection.
Parameters
|
Description
|
Index
|
Uniquely identifies each pattern canvas within the PatternCanvases collection
|
The following code example creates a rectangle and fills it with the Maple leaf pattern, turned upside-down:
Sub Test() Dim c As New PatternCanvas c.PutCopy PatternCanvases(25) c.RotateArea 0, 0, c.Width - 1, c.Height - 1, 180 With ActiveLayer.CreateRectangle(0, 0, 3, 3) .Fill.ApplyPatternFill cdrTwoColorPattern .Fill.Pattern.Canvas = c End With End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.