Object Model Reference : Classes : T : TextureFill : Properties : TextureFill.TileOffsetType |
Property TileOffsetType As cdrTileOffsetType
Member of TextureFill
The TileOffsetType property returns or specifies the offest type of the tile in a texture-fill pattern.
• |
A texture-fill pattern can be offset by row or by column.
|
• |
You can use the TextureFill.TileOffsetType property to specify the percentage
of offset for adjacent rows or columns.
|
The TileOffsetType property returns a value of cdrTileOffsetType.
The following VBA example applies a texture pattern to a rectangle and offsets each row of tiles by 20%, relative to each other.
Sub Test() |
Dim s As Shape |
Dim tf As TextureFill |
Set s = ActiveLayer.CreateRectangle(0, 0, 4, 4) |
Set tf = s.Fill.ApplyTextureFill("Water Color") |
tf.TileHeight = 0.5 |
tf.TileWidth = 0.5 |
tf.TileOffsetType = cdrTileOffsetRow |
tf.TileOffset = 20 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.