Object Model Reference : Classes : P : PatternFill : Properties : PatternFill.TileOffsetType |
Property TileOffsetType As cdrTileOffsetType
Member of PatternFill
The TileOffsetType property returns or specifies the type of offset for a tile in a pattern fill.
A pattern can be offset by row or by column.
The TileOffsetType property returns a value of cdrTileOffsetType.
• |
You can use the TileOffset property to set the offset.
|
The following VBA example applies a two-color bitmap pattern to a rectangle and offsets rows by 50% relative to each other.
Sub Test() |
Dim s As Shape |
Dim pf As PatternFill |
Set s = ActiveLayer.CreateRectangle(0, 0, 4, 4) |
Set pf = s.Fill.ApplyPatternFill(cdrTwoColorPattern, , 8) |
pf.TileWidth = 1 |
pf.TileHeight = 1 |
pf.TileOffsetType = cdrTileOffsetRow |
pf.TileOffset = 50 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.