Previous Page | Next Page

DATA Step Graphics Interface Dictionary

TEXALIGN



Specifies the horizontal and vertical alignment of the text string
Operating States: GKOP, SGOP, WSAC, WSOP
Return Codes: 0, 8
Default values: halign=NORMAL, valign=NORMAL

Syntax
Description
Argument Definitions
See Also

Syntax

return-code-variable=GSET('TEXALIGN', halign, valign);


Description

The GSET('TEXALIGN', . . . ) function sets a particular type of horizontal and vertical alignment for text strings. Halign Values illustrates halign.

Halign Values

[Halign Values]

Valign Values illustrates valign.

Valign Values

[Valign Values]


Argument Definitions

halign

character string enclosed in quotation marks or character variable name. Valid values are

CENTER

LEFT

NORMAL (the natural alignment based on the text path); alignment is chosen according to the following logic:

  1. If TEXPATH is 'RIGHT', then NORMAL is 'LEFT'.

  2. Otherwise, if TEXPATH is 'LEFT', then NORMAL is 'RIGHT'.

  3. Otherwise, the text string is centered.

RIGHT.

valign

character string enclosed in quotation marks or character variable name. Valid values are

BASE (alignment based on the baseline of the text string)

BOTTOM (alignment based on the bottom of the text string)

HALF (alignment based on the vertical midpoint of the string)

NORMAL (natural alignment based on the text path); alignment is chosen according to the following logic:

  1. If TEXPATH is 'RIGHT' or TEXPATH is 'LEFT', then NORMAL is 'BASE'.

  2. Otherwise, if TEXPATH is 'UP', then NORMAL is 'BOTTOM'.

  3. Otherwise, if TEXPATH is 'DOWN', then NORMAL is 'TOP'.

TOP (alignment based on the top of the string).


See Also

TEXALIGN

TEXT

TEXPATH

TEXUP

Previous Page | Next Page | Top of Page