PGetTypePosition

Gets the text position (normal, superscript, or subscript) applied to the selected text.


Query results

This query returns a short value, which represents the type positioning of the selected text.
kPositionNormal
kPositionSuperscript
kPositionSubscript
kParmDontCare
for multiple settings in selection.
Defining or editing a style. If you are defining or editing a style using the PStyleBegin command, PageMaker gets the position settings for that style rather than for the selected text.

No insertion point. If the text does not contain the insertion point, PageMaker gets the default type position.

No text selected. If the text contains the insertion point but no text is selected, PageMaker returns the type position of the character preceding the insertion point. If the insertion point is before the first character of the story, PageMaker returns the type position of the first character.

Example.

PGetTypePosition pos;
if (pos == kPositionNormal) ...


See also

The PGetTypeOptions query

The PPosition command


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support