API Documentation > CorelDRAW > 2025-v26 > PatternFill > IVGPatternFill
PatternFill.TileOffsetType property
Gets or sets the Tile offset Type
Syntax:
Property Get TileOffsetType() As cdrTileOffsetType
Property Let TileOffsetType(ByVal Value As cdrTileOffsetType)
Remarks:
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.
Examples:
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