API Documentation > CorelDRAW > 2025-v26 > Transparency > IVGTransparency
Transparency.Pattern property
Gets or sets the pattern fill properties of the transparency
Syntax:
Property Get Pattern() As PatternFill
Property Set Pattern(ByVal Value As PatternFill)
Remarks:
The Pattern property returns a PatternFill object representing the settings for a pattern-fill transparency.
Examples:
The following VBA example creates a rectangle and applies a two-color pattern-fill transparency to it. It then skews the pattern by 20°.
Sub Test()
Dim s As Shape
Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2)
s.Fill.UniformColor.RGBAssign 255, 0, 0
s.Transparency.ApplyPatternTransparency cdrTwoColorPattern, , 1
s.Transparency.Pattern.BackColor.GrayAssign 255
s.Transparency.Pattern.SkewAngle = 20 
End Sub