This content has been marked as final. Show 7 replies
I just noticed something confusing in my question:
the command the made me wonder is
text.appliedParagraphStyle = someStyle;
I know that the latter has override-behaviour as parameter.
Thank you again
Sub ApplyParagraphStyle(Using As ParagraphStyle, [ClearingOverrides As Boolean = True])
Member of InDesign.Text
Apply a paragraph style / Using: The paragraph style to apply / ClearingOverrides: Whether to clear any text attributes before applying the style
applies the paragraph style and doesn't remove overrides. Use "true" to delete the overrides, in which case you get the same results as
>text.appliedParagraphStyle = someStyle
Thank you for your answers.
I know about the second parameter of text.applyParagraphStyle.
The real question is: is there some preference somewhere that makes
> text.appliedParagraphStyle = someStyle;
> text.applyParagraphStyle ( someStyle, false);
or will it always behave like
> text.applyParagraphStyle ( someStyle, true);
>The real question is: is there some preference somewhere that makes
I don't think so, certainly have never come across it.
Have you considered to set multiple .properties at once?
I haven't tried whether that helps, though.
On the other hand, if you're actually are working on combined .properties and try to get around selected few ones:
var myProps = someText.properties;
otherText.properties = myProps;
I used that approach in a different area - if you assign a color from a different document to a table cell, you get a quick shut down of InDesign.
I just found it again: clearOverridesWhenApplyingStyle is a property of app
Now to test if it does what I hope it does :)