API Documentation > CorelDRAW > 2025-v26 > Fill > IVGFill
Fill.Texture property
Gets or sets Texture properties
Syntax:
Property Get Texture() As TextureFill
Property Set Texture(ByVal Value As TextureFill)
Remarks:
The Texture property returns a TextureFill object that represents the settings for a texture fill.
Examples:
The following VBA example creates a rectangle and applies a texture fill to it. The background color of the fill is then changed to red.
Sub Test()
Dim s As Shape
Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2)
s.Fill.ApplyTextureFill "Patches 2C"
s.Fill.Texture.Properties("Background:").Value = CreateRGBColor(255, 0, 0) 
End Sub