API Documentation > CorelDRAW > 2025-v26 > HatchPattern > IVGHatchPattern
HatchPattern.SetProperties method
Specifies commonly used pattern properties
Syntax:
Sub SetProperties(Optional ByVal Angle As Variant, Optional ByVal Spacing As Double = 0, Optional ByVal Shift As Variant, Optional ByVal OriginX As Variant, Optional ByVal OriginY As Variant, Optional ByVal Width As Double = -1, Optional ByVal Color As Color = Nothing, Optional ByVal Style As OutlineStyle = Nothing, Optional ByVal DashDotLength As Double = -1, Optional ByVal PenWidth As Double = 0)
Parameters:
Name Type Description
Angle
Variant
Spacing
Double
Specifies the line spacing in the hatch-fill pattern.
Shift
Variant
OriginX
Variant
OriginY
Variant
Width
Double
Specifies the width at which to apply the hatch fill.
Color
Specifies the color for the hatch fill.
Style
Specifies the outline style for the hatch fill.
DashDotLength
Double
Specifies the dash-dot length of the lines in the hatch fill.
PenWidth
Double
Specifies the pen width of the lines in the hatch fill.
Remarks:
The SetProperties method specifies commonly used properties for hatch-fill patterns.