API Documentation > CorelDRAW > 2025-v26 > TextureFill > IVGTextureFill
TextureFill.SetProperties method
Sets Texture Properties
Syntax:
Sub SetProperties(ByRef ParamArray SettingArray() As Variant)
Parameters:
Name Type Description
SettingArray
Variant
Remarks:
The SetProperties method allows you to set all the properties of a texture fill with a single command.
Examples:
The following VBA example applies the Vapor 2 texture to a rectangle and modifies the following properties in the following ways: Texture # = 20611, Density = 30%, Softness = 75%, Background = Black, Vapor = 40% Cyan, and Brightness = 20%.
Sub Test()
Dim s As Shape
Dim tf As TextureFill
Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2)
Set tf = s.Fill.ApplyTextureFill("Vapor 2C")
tf.SetProperties 20611, 30, 75, CreateRGBColor(0, 0, 0), CreateRGBColor(117, 197, 240), 20 
End Sub