|   |   | Object Model Reference : Classes : P : PatternCanvases : Properties : PatternCanvases.Item | 
Property Item(Index As Long) As PatternCanvas
Member of PatternCanvases
The Item property returns or specifies a reference to a specified pattern canvas in a PatternCanvases collection.
Item is the default property of the PatternCanvases class, and its reference can be omitted when you are accessing items in a PatternCanvases collection. For example, PatternCanvases.Item(2) is the same as PatternCanvases(2)  they both reference the second pattern canvas in the collection.
| 
Parameter
 | 
Description
 | 
| 
Index
 | 
Specifies the desired pattern canvas within the PatternCanvases collection
 | 
The following VBA 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 2013 Corel Corporation. All rights reserved.