API Documentation > CorelDRAW > 2025-v26 > Fill > IVGFill
Fill.Pattern property
Gets or sets Pattern properties
Syntax:
Property Get Pattern() As PatternFill
Property Set Pattern(ByVal Value As PatternFill)
Remarks:
The Pattern property returns a PatternFill object that represents the settings for a pattern fill.
Examples:
The following VBA example creates a rectangle and applies a skewed two-color pattern fill to it.
Sub Test()
Dim s As Shape
Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2)
s.Fill.ApplyPatternFill cdrTwoColorPattern, , 4, CreateRGBColor(255, 0, 0), CreateRGBColor(255, 255, 0)
s.Fill.Pattern.SkewAngle = 20 
End Sub