API Documentation > CorelDRAW > 2025-v26 > HatchPattern > IVGHatchPattern
HatchPattern.SetOrigin method
Sets both horizontal and vertical offset of the start of the first line in the pattern
Syntax:
Sub SetOrigin(ByVal OriginX As Double, ByVal OriginY As Double)
Parameters:
Name Type Description
OriginX
Double
OriginY
Double
Remarks:
The SetOrigin method sets the horizontal and vertical offsets of the start of the first line in a hatch-fill pattern.