PRemoveStyle

Removes the named style.


Command constructor

PRemoveStyle(const char * sStyleName);
Exact name of the style to delete (maximum of 31 characters)
Paragraphs restyled as No Style. Any paragraphs in the publication formatted with the deleted style retain their formatting, but the style assigned to them is called No Style.

Removing styles while defining or editing. Never send a PRemoveStyle command while a style is being defined or edited with the PStyleBegin and PStyleEnd commands. If PageMaker encounters PRemoveStyle between a PStyleBegin/PStyleEnd pair, it returns an error (and hence PRemoveStyle throws an exception), and the style-definition context remains in effect.

Example. The following example deletes the style called Heading 4.

PRemoveStyle("Heading 4");


See also

The PGetStyle and PGetStyleNames queries

Adobe PageMaker 6.5 Help > Commands > Type > Define Styles


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

Comments or suggestions? Contact Adobe Developer Support