Skip to main content

DrawLine

DrawLine [/W=winName ] x0, y0, x1, y1

The DrawLine operation draws a line in the target graph, layout or control panel from (x0,y0 ) to (x1,y1 ).

Flags

/W=winNameDraws to the named window or subwindow. When omitted, action will affect the active window or subwindow. This must be the first flag specified when used in a Proc or Macro or on the command line.
When identifying a subwindow with winName, see Subwindow Syntax for details on forming the window hierarchy.

Details

The coordinate system as well as the line's thickness, color, dash pattern and other properties are determined by the current drawing environment. The line is drawn in the current draw layer for the window, as determined by SetDrawLayer.

See Also

Drawing

SetDrawEnv, SetDrawLayer, DrawAction