PRIM_PDF - setLineDash Method

Sets the dash pattern for upcoming lines

Member of PRIM_PDF (PRIM_PDF)

Parameters

Name

Type

Data Type

Description

Pattern

*Input

PRIM_OBJT

The pattern of the line in an array of numbers

Phase

*Input (Optional)

PRIM_OBJT

The phase at which the dash pattern starts

Details

Sets the dash pattern for upcoming lines.

Example

Set the line dash pattern

     Define_Com Class(#PRIM_PDF) Name(#pdf) Unitm(mm) Pageformat(A4) Pageorientation(Portrait)
Define_Com Class(#PRIM_NMBR) Name(#DashEnt)
Define_Com Class(#PRIM_NMBR) Name(#DashPhase)
Define_Com Class(#Prim_ACol<#PRIM_NMBR>) Name(#DashPat)

#pdf.start

#DashPat.Insert( (*New #PRIM_NMBR) )
#DashPat<1> := 7
#DashPat.Insert( (*New #PRIM_NMBR) )
#DashPat<2> := 3
#DashPat.Insert( (*New #PRIM_NMBR) )
#DashPat<3> := 1
#DashPat.Insert( (*New #PRIM_NMBR) )
#DashPat<4> := 3

#DashPhase := 10

#pdf.setLineDash Pattern(#DashPat) Phase(#DashPhase)
#pdf.setLineWidth Width(0.2)

#pdf.line Left(10) Top(10) Right(150.5) Bottom(10)

#pdf.save Filename('myReport.pdf')

See also

All Component Classes

Technical Reference