Arbortext IsoDraw > Macro Language Reference > Object Data Types > Element Object > element.text
  
element.text
This property gives access to all text attributes but it can not be used directly. It is assumed that myElem has already been defined as an element for the following samples
element.text.startPoint
Returns and sets the start point of a text element as point.
myElem.text.startPoint.x = 122.76
myElem.text.startPoint.y = 131.76
element.text.justHor
Returns and sets the horizontal justification of a text element as integer. Allowed values are 0 for “left”, 1 for “center” and (-1) for “right”.
myElem.text.justHor = 0
element.text.justVer
Returns and sets the vertical justification of a text element as integer. Allowed values are 1 for “top”, 2 for “middle”, 3 for “bottom” and 4 for “baseline”.
myElem.text.justVer = 2
element.text.stroke
Returns and sets the stroke width of a text element as float. You can enter any size but when you enter -256 you will deactivate the stroke.
myElem.text.stroke = 2
element.text.back_stroke
Returns and sets the stroke width of the background of a text element as float. You can enter any size but when you enter -256 you will deactivate the stroke.
myElem.text.back_stroke = 1.5
element.text.backstroke_color
Returns and sets the stroke color of the background of a text element as ColorSpec (see ColorSpec).
myElem.text.backstroke_color.type = "rgbValues"
myElem.text.backstroke_color.rgb.red = 188
myElem.text.backstroke_color.rgb.green = 208
myElem.text.backstroke_color.rgb.blue = 168
element.text.backfill_color
Returns and sets the color of the background of a text element as ColorSpec (see ColorSpec).
myElem.text.backfill_color.type = "rgbValues"
myElem.text.backfill_color.rgb.red = 234
myElem.text.backfill_color.rgb.green = 29
myElem.text.backfill_color.rgb.blue = 176
element.text.back_width
Returns and sets the width of the background of a text element as Float.
myElem.text.back_width = 2.2
element.text.back_height
Returns and sets the height of the background of a text element as Float.
myElem.text.back_height = 1.1
element.text.back_shape
Returns and sets the shape of the background of a text element as integer. Allowed values are 0 for “rectangle” and 1 for “circle”.
myElem.text.back_shape = 1
element.text.back_auto
Returns and sets if the background of a text element is adjusted to the text as boolean.
myElem.text.back_auto = TRUE
element.text.string
Returns and sets the displayed text of a text element as string.
myElem.text.string = "Hello World"