Clear paragraph style override


hello all

i trying clear override of paragraph style reapplying para style on same paragraph

but not clearing override

my code:

oobj.appliedparagraphstyle = oobj.appliedparagraphstyle

 

where going wrong?

please suggest

thank you

hi

 

you may choose either clear overrides text object:

 

void clearoverrides ([overridestoclear: overridetype=overridetype.all])
clears specified types of override.

parametertypedescription
overridestoclearoverridetype:
overridetype.all
overridetype.character_only
overridetype.paragraph_only
the types of override clear. (optional) (default: overridetype.all)

 

or

 

use:

 

void applyparagraphstyle (using: paragraphstyle[, clearingoverrides: bool=true])
apply paragraph style.

parametertypedescription
usingparagraphstylethe paragraph style apply.
clearingoverridesboolif true, clear text attributes before applying style. (optional) (default: true)

 

fwiw

 

loic

ozalto | productivity oriented - loïc aigon



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"