Chapter Contents

Previous

Next
TEXALIGN

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

[IMAGE]

Valign Values illustrates valign.

Valign Values

[IMAGE]


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

GASK('TEXALIGN', . . . ) routine
GDRAW('TEXT', . . . ) function
GSET('TEXPATH', . . . ) function
GSET('TEXUP', . . . ) function


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.