API Documentation > CorelDRAW > 2025-v26 > ShapeRange > IVGShapeRange
ShapeRange.ApplyHatchFill method
Applies a preset hatch fill from a library to the shapes in the range
Syntax:
Sub ApplyHatchFill(ByVal LibraryName As String, ByVal HatchNameOrIndex As Variant, 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
LibraryName
String
HatchNameOrIndex
Variant
BackColor
Specifies the 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 ApplyHatchFill method applies a preset (library) hatch fill to the shapes in a shape range.