Copy link to clipboard
Copied
Hi for every one,
I've a paragraph called myParagraph . I would like to apply the paragraph style which called N with the option which is similar to
Apply "N" , Clear Character Styles
the code i used is
myDoc = app.activeDocument;
myParagraph=myDoc.spreads[2].pages[0].textFrames[0].paragraphs[1];
myParagraphStyle=myDoc.paragraphStyles.itemByName("N");
myParagraph.applyParagraphStyle(myParagraphStyle,true);
the reslut it applyed the paragraph style N but
the font size of the original paragraph remain . does not change to the new one
Where is it going wrong?
Please suggest
Thank you
myParagraph.appliedCharacterStyle = myDoc.characterStyles[0];
myParagraph.applyParagraphStyle(myParagraphStyle,true);
Copy link to clipboard
Copied
myParagraph.appliedCharacterStyle = myDoc.characterStyles[0];
myParagraph.applyParagraphStyle(myParagraphStyle,true);
Copy link to clipboard
Copied
it works,
thank you