SetSelectionParagraphStyle()

Syntax:

textObject.SetSelectionParagraphStyle( Style )

Parameters:

StyleStyle is a reference to one property of an object that can be used to set one of the paragraph style formats for a Text object. For example, Style could change the following paragraph styles within a Text object: justification, linespacing, spacebefore, spaceafter, leftindent, rightindent, firstlineindent, hangingindent or bullet. For correct syntax, refer to the GetSelectionParagraphStyle function. This parameter is required.

Remarks:

This function allows you to set a new paragraph style to a Text object. Only the properties specified are applied to the text. This function will only work if you have a paragraph selected in a Text object, use the SetSelection function to create a selection.

image\Script_Button.jpgExamples