API Documentation > CorelDRAW > 2025-v26 > Fill > IVGFill
Fill.ApplyTextureFill method
Apply a Texture Fill to the shape
Syntax:
Function ApplyTextureFill(ByVal TextureName As String, Optional ByVal LibraryName As String) As TextureFill
Parameters:
Name Type Description
TextureName
String
LibraryName
String
Remarks:
The ApplyTextureFill method applies a texture fill to a shape.
Examples:
The following VBA example applies the Blend Edges texture from the Styles library.
Sub Test()
Dim s As Shape
Set s = ActiveLayer.CreateRectangle(0, 0, 5, 5)
s.Fill.ApplyTextureFill "Blend Edges" 
End Sub Sub Test()
Dim s As Shape
Set s = ActiveLayer.CreateRectangle(0, 0, 5, 5)
s.Fill.ApplyTextureFill "Alien Eyes", "Samples 9" 
End Sub