Specifies the angle at which the linear element is to be placed. The angle is specified as horizontal to the right is zero; it is measured counterclockwise for positive angles. Negative angles values can be used but will be transformed to the equivalent positive value. The angular units are the active angular readout unit.
Specifies the x coordinate for the start of the linear element. The first (primary) linear element placed must have an x origin of 0.
Specifies the y coordinate for the start of the linear element. The first (primary) linear element placed must have an y origin of 0.
Specifies the horizontal distance at which to repeat the linear element in the hatch pattern.
Specifies the vertical distance at which to repeat the linear element in the hatch pattern.
Specifies the color of the linear element if not the default color.
Specifies the width of the linear element if not the default width.
Specifies the line style name (continuous, dash gap style, and so forth) if not the active linear style.
Description
Creates a linear element to be used in the referenced hatch pattern.
Syntax
Visual Basic
Public Function AddHatch( _
ByVal dRotation As Double, _
ByVal dXOrigin As Double, _
ByVal dYOrigin As Double, _
ByVal dSpacing As Double, _
ByVal dShift As Double, _
ByVal nColor As Long, _
ByVal dWidth As Double, _
ByVal DashTypeName As String _
) As Long
Parameters
dRotation
Specifies the angle at which the linear element is to be placed. The angle is specified as horizontal to the right is zero; it is measured counterclockwise for positive angles. Negative angles values can be used but will be transformed to the equivalent positive value. The angular units are the active angular readout unit.
dXOrigin
Specifies the x coordinate for the start of the linear element. The first (primary) linear element placed must have an x origin of 0.
dYOrigin
Specifies the y coordinate for the start of the linear element. The first (primary) linear element placed must have an y origin of 0.
dSpacing
Specifies the horizontal distance at which to repeat the linear element in the hatch pattern.
dShift
Specifies the vertical distance at which to repeat the linear element in the hatch pattern.
nColor
Specifies the color of the linear element if not the default color.
dWidth
Specifies the width of the linear element if not the default width.
DashTypeName
Specifies the line style name (continuous, dash gap style, and so forth) if not the active linear style.
Remarks
The first linear element added to the pattern is assigned the display index of 1 and must have an origin of 0, 0. Each linear element added to the pattern is assigned the next sequential display index number. A line length is not specified. That is because each linear element traverses the extent of the fill region. Therefore, to create a noncontinuous section of the hatch pattern, a dash gap patterned line must be used. For some hatch patterns, the gaps need to be set so that they begin and terminate at the desired intersections with other lines.