2.5.14 label_layer


Brief Information

Add labels to layers in a graph

Command Line Usage

1.label_layer type:=0 pos:=tro; //add the enumerate uppercase letters as label in the top Right outside of graph layers

2. label_layer type:=2 custom:=Graph## pos:=1; // add a label named Graph## in the top left inside of graph layers

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Type type

Input

int

0
Specify the type of labels

Option list:

  • 0=capitalA:A
  • 1=a:a
  • 2=custom:Custom
Custom custom

Input

string

a$
When set type variable to custom, then can set the type to:
  • a$ and A$ enumerate lowercase and uppercase letters.
  • r$ and R$ enumerate lowercase and uppercase Roman numerals.
  • n$ and # enumerate index number.
  • h$ represents character #.
Position pos

Input

int

0
Specify the position of the added label in the layer

Option list:

  • 0=tlo:Top Left Outside
  • 1=tli:Top Left Inside
  • 2=tro:Top Right Outside
  • 3=tri:Top Right Inside
  • 4=tci:Top Center Inside
  • 5=tco:Top Center Outside
  • 6=bco:Bottom Center Outside
Font font

Input

TreeNode

<unassigned>
Specify font style.

Description

This X-Function is added the custom label to the layers in the graph. If there are multiple layers, it will you can use the enumerate letter or index number for each layer.