API Documentation > CorelDRAW > 2025-v26 > ShapeRange > IVGShapeRange
ShapeRange.ApplyCustomHatchFill method
Applies a custom hatch fill to the shapes in the range
Syntax:
Sub ApplyCustomHatchFill(ByVal Angle As Double, ByVal Spacing As Double, Optional ByVal Shift As Double = 0, Optional ByVal OriginX As Double = 0, Optional ByVal OriginY As Double = 0, 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, Optional ByVal BackColor As Color = Nothing, Optional ByVal TransformWithShape As Boolean = False, Optional ByVal ScaleLinesWithShape As Boolean = False, Optional ByVal UseWorldCoordinates As Boolean = False, Optional ByVal FillScale As Double = 0, Optional ByVal LineScale As Double = 0, Optional ByVal FillAngle As Double = 0, Optional ByVal FillSkew As Double = 0)
Parameters:
Name Type Description
Angle
Double
Spacing
Double
Shift
Double
Specifies an additional relative horizontal shift of the lines in the hatch-fill pattern.
OriginX
Double
Specifies the horizontal offset of the start of the first line in the hatch-fill pattern.
OriginY
Double
Specifies the vertical offset of the start of the first line in the hatch-fill pattern.
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.
BackColor
Specifies a background color for the hatch fill.
TransformWithShape
Boolean
Specifies whether to transform the hatch fill with the shape to which the hatch fill is applied.
ScaleLinesWithShape
Boolean
Specifies whether to scale the hatch-fill lines with the shape to which the hatch fill is applied.
UseWorldCoordinates
Boolean
Specifies whether local or world coordinates are used to align the hatch fills that are applied to different objects.
FillScale
Double
Specifies the average scale factor for the hatch fill.
LineScale
Double
Specifies the average line-thickness scale factor for the hatch fill.
FillAngle
Double
Specifies the rotation angle for the hatch fill.
FillSkew
Double
Specifies the skew angle for the hatch fill.
Remarks:
The ApplyCustomHatchFill method applies a custom hatch fill to the shapes in a shape range.