line | |
Type | keyword |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Summary | Designates a return-delimited string as part of a chunk expression. It also designates the paint tool used to draw line shapes and specifies, through the style property, that a graphic is a line. |
Introduced | 1.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Example |
|
Related | Keyword: character, characters, graphic, items, line, lines, paragraph, string, trueWord, word, words Property: lineDelimiter, penColor, points, style Command: choose Object: graphic Glossary: chunk, chunk expression, container, delimit, double quote, keyword, LiveCode, paint tool, property, Unicode Function: lineOffset |
Description | Use the line keyword to paint a curved line with the penColor, to draw a line shape, or to refer to a specific line or lines in a container. When using the Line tool, the cursor is a crosshairs shape (over stack windows) or an arrow (anywhere else). This tool is used to draw a straight line in the penColor. If you try to paint with the Line tool on a card that has no images, an image the size of the card is created to hold the painting. If the current card already has one or more images, painting outside the image has no effect. Setting the style of a graphic to "line" makes the graphic into a curved line. Line graphics, unlike painted lines, can be changed and reshaped: use the points property to change the line's angle and position.
By default, a line is delimited by return (ASCII 10). However, you can set the lineDelimiter property to any character in order to directly address chunks delimited by that character. A line is a string of characters delimited by a single return character (or a single one of the lineDelimiter character). A single line can contain multiple characters, multiple words, and multiple items.
|
Tags | text processing |