SetSelectionStyle()

Syntax:

textObject.SetSelectionStyle( Style )

Parameters:

StyleStyle is a reference to one property of an object that can be used to set one of the style formats of a Text object. For example, Style could make the text within a Text object bold, italic, underline, subscript or superscript. Or Style could change a Text objects, font, fontsize, fontaspect, colour, backgroundcolour or shadowcolour. For correct syntax, refer to the GetSelectionStyle function. This parameter is required.

Remarks:

This function allows you to set a new formatting style to a Text object. Only the properties specified are applied to the text.

image\Script_Button.jpgExamples

 

see also:GetSelectionParagraphStyle and SetSelectionParagraphStyle