You are here: Surpac Concepts > Macros > SCL > SCL Graphics Drawing > SclGraphicsSetTextAlignment
GEOVIA Surpac

SclGraphicsSetTextAlignment

Overview

Set the alignment of text to ensure it is draw in the correct position with respect to the point at which the text is inserted.

Synopsis

SclGraphicsSetTextAlignment $alignmentCode

Arguments

  • alignmentCode
  • Pass by value. Test is positioned with respect to the point at which the text is inserted. A simple scheme to define the text orientation using special characters is used to position the text relative to the insertion point. Permitted alignment codes include:

    • < - Align the left edge of the characters with the insertion point.
    • > - Align the right edge of the characters with the insertion point.
    • ^ - Align the top of the characters with the insertion point.
    • v - Align the bottom of the characters with the insertion point.
    • * - Align the centre of the characters with the insertion point.
    • <v - Align the bottom left edge of the characters with the insertion point.
    • >v - Align the bottom right edge of the characters with the insertion point.
    • <^ - Align the top left edge of the characters with the insertion point.
    • >v - Align the top right edge of the characters with the insertion point.

Returns

Nothing.

Examples

SclGraphicsOpen mynode
  SclGraphicsSetTextAlignment "<v"
SclGraphicsClose