TagSymbol

New in version 5.0

TagSymbol ( width ;​ height ;​ position ;​ alignment ;​ gap ;​ type ;​ stroke ;​ color ;​ colorVariant ;​ backgroundColor ;​ backgroundColorVariant ;​ shadowEffect ;​ shadowColor )

Argument Type Range Default Note
width num 1..10000 (required)
height num 1..10000 (required)
position int 1..4 left Relative to text
alignment int 1..3 2
gap num -10000..+10000 2%
type int 0..126 square
stroke num[] 0..1000 1 Dimension:[pt]
color rgba 0..255 black
colorVariant int -1..128 solid
backgroundColor rgba 0..255 none
backgroundColorVariant int -1..128 solid
shadowEffect num[] -1000..1000 0
shadowColor rgba 0..255 #888a
Examples

TagSymbol(10;​10;​left;​top;​6;​bullet;​1;​red)

Description

A tag consists of a text object and an optional symbol or picture object and an optional background.

TAG_SYMBOL_01
1

OpenDrawing(200;​110)

2

OpenGroup()

3

OpenTag(20;​20)

4

TagSymbol(16;​16;​right;​center;​10;​squareOutline;​2;​red)

5

TagText("Distribution Test 9632";​Arial;​14)

6

CloseTag()

7

OpenTag(20;​42)

8

TagSymbol(16;​16;​right;​center;​10;​squareOutline;​2;​red)

9

TagText("Distribution Test 9669";​Arial;​14)

10

CloseTag()

11

OpenTag(20;​64)

12

TagSymbol(16;​16;​right;​center;​10;​squareOutline;​2;​red)

13

TagText("Distribution Test 9670";​Arial;​14)

14

CloseTag()

15

Background(#f3f6f2;​0;​0;​;​;​2 2 2;​lightGray)

16

BackgroundOptions(8 0;​10 15)

17

CloseGroup()

18

CloseDrawing()

TAG_SYMBOL_01
TAG_SYMBOL_02
1

OpenDrawing(200;​90)

2

OpenTag(10;​10)

3

TagSymbol(20;​20;​ /* Symbol width and height.  */

4

left;​ /* Symbol position relative to text. */

5

top;​ /* Symbol alignment.  */

6

8;​ /* Gap between symbol and text.  */

7

squareOutline;​2;​red)

8

TagText("Distribution Test 9632-1";​Arial;​14)

9

CloseTag()

10

OpenTag(10;​32)

11

TagSymbol(20;​20;​ /* Symbol width and height.  */

12

left;​ /* Symbol position relative to text. */

13

top;​ /* Symbol alignment.  */

14

8;​ /* Gap between symbol and text.  */

15

circle;​2;​red)

16

TagText("Distribution Test 9678-2";​Arial;​14)

17

CloseTag()

18

OpenTag(10;​54)

19

TagSymbol(20;​20;​ /* Symbol width and height.  */

20

left;​ /* Symbol position relative to text. */

21

top;​ /* Symbol alignment.  */

22

8;​ /* Gap between symbol and text.  */

23

triangleRightOutline;​2;​red)

24

TagText("Distribution Test 9679-3";​Arial;​14)

25

CloseTag()

26

/* Background() // Uncomment while positioning the tag element. */

27

CloseDrawing()

TAG_SYMBOL_02

More examples can be found under TagText() and TagPicture() .

Scroll to Top