API Documentation > CorelDRAW > 2025-v26
HatchFill class
HatchFill class
Syntax:
Class HatchFill
Remarks:
The HatchFill class represents the settings for a hatch fill.
Properties:
Name Description
BackColor Gets or sets the background color of the hatch. 'Nothing' is used to specify no color
FillScaleX Specifies the horizontal scale factor for the fill properties
FillScaleY Specifies the vertical scale factor for the fill properties
HasBackground Returns True if the hatch has an opaque background
HatchName Returns the hatch pattern name in the library
Index Returns the index of the fill within its respective libraries or zero if the fill is not part of any library
IsFromLibrary Returns True if the fill comes from a hatch fill library, False if it was modified from its library definition
Library Returns the library this fill belongs to or Nothing if this fill is not part of a library
LibraryName Returns the library name the hatch was applied from
Patterns Returns a collection of hatch patterns
RotationAngle Specifies the additional rotation angle of the whole hatch fill
ScaleLinesWithShape Specifies whether the line thicknesses should be transformed along with the shape
SkewAngle Specifies the additional skew angle of the whole hatch fill
TransformWithShape Specifies whether the fill properties should be transformed along with the shape
UseWorldCoordinates Specifies whether local or world coordinates are used to align hatch fills of different objects
Methods:
Name Description
AddPattern Adds a new pattern to the hatch
AddToLibrary Adds the current hatch fill to the library
GetFillScale Gets the average scale factor for the fill
GetLineScale Gets the average line thickness scale factor for the fill
Select Selects a new hatch fill from the specified library
SetFillScale Sets the average scale factor for the fill
SetLineScale Sets the average line thickness scale factor for the fill
SetNoBackColor Makes the hatch fill background transparent