API Documentation > CorelDRAW > 2025-v26 > TextureFill > IVGTextureFill
TextureFill.MaximumTileWidth property
Gets or sets Maximum Tile Width
Syntax:
Property Get MaximumTileWidth() As Long
Property Let MaximumTileWidth(ByVal Value As Long)
Remarks:
The MaximumTileWidth property returns or specifies the maximum size, in pixels, of a tile in a texture-fill pattern.
Examples:
The following VBA example applies a texture fill to a rectangle and displays the maximum size of tiles in the texture.
Sub Test()
Dim s As Shape
Dim tf As TextureFill
Set s = ActiveLayer.CreateRectangle(0, 0, 4, 4)
Set tf = s.Fill.ApplyTextureFill("Leather 3C")
MsgBox "Max tile width = " & tf.MaximumTileWidth 
End Sub