DATA Step Graphics Interface Dictionary |
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
|
return-code-variable=GSET('TEXALIGN', halign, valign);
The GSET('TEXALIGN', . . . ) function
sets a particular type of horizontal and vertical alignment for text strings. Halign Values illustrates
halign.
Halign Values
Valign Values
illustrates valign.
Valign Values
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:
-
If TEXPATH is 'RIGHT', then NORMAL is
'LEFT'.
-
Otherwise, if TEXPATH is 'LEFT', then NORMAL is
'RIGHT'.
-
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:
-
If TEXPATH is 'RIGHT' or TEXPATH is 'LEFT', then
NORMAL is 'BASE'.
-
Otherwise, if TEXPATH is 'UP', then NORMAL is
'BOTTOM'.
-
Otherwise, if TEXPATH is 'DOWN', then NORMAL is
'TOP'.
|
|
TOP (alignment based on the top of the
string). | |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.