API Documentation > CorelDRAW > 2025-v26 > TextureFill > IVGTextureFill
TextureFill.Select method
Selects the Library and the Texture
Syntax:
Sub Select(ByVal Texture As String, Optional ByVal Library As String)
Parameters:
Name Type Description
Texture
String
Library
String
Remarks:
The Select method replaces a texture fill in a shape with another texture fill.
Examples:
The following VBA example loops though all shapes on a page and searches for a modified texture fill that is based on a preset library. When found, the fill is replaced with the original style pattern upon which the current fill is based.
Sub Test()
Dim s As Shape
Dim tf As TextureFill
For Each s In ActivePage.Shapes
  If s.Fill.Type = cdrTextureFill Then

 Set tf = s.Fill.Texture

 If tf.LibraryName <> "" Then


tf.Select tf.StyleName

 End If
  End If
Next s 
End Sub