API Documentation > CorelDRAW > 2025-v26
HatchPattern class
HatchPattern class
Syntax:
Class HatchPattern
Remarks:
The HatchPattern class represents the available hatch-fill patterns.
Properties:
Name Description
Angle Specifies the rotation angle of the lines in the pattern
Index Returns the index of the pattern in the collection
OriginX Specifies the horizontal offset of the start of the first line in the pattern
OriginY Specifies the vertical offset of the start of the first line in the pattern
Outline Specifies the outline properties of the line in the pattern
Shift Specifies additional relative horizontal shift of lines in the hatch pattern
ShiftPercent Specifies additional relative horizontal shift of lines in the hatch pattern as a percentage of dash-dot pattern length
Spacing Specifies the line spacing
Methods:
Name Description
Delete Deletes the current pattern from the collection
GetOrigin Gets both horizontal and vertical offset of the start of the first line in the pattern
Reset Resets the pattern parameters to their default values
SetOrigin Sets both horizontal and vertical offset of the start of the first line in the pattern
SetProperties Specifies commonly used pattern properties