setParagraphFormat(leftIndent: Integer; rightIndent: Integer; firstLineIndent: Integer; alignment: Integer);
The setParagraphFormat method of the JadeRichText class sets common paragraph formatting attributes of the receiver (that is, the paragraph that contains the insertion point). For an example of the use of this method, see "JadeRichText Control Method Example", earlier in this document.
The setParagraphFormat method parameters are listed in the following table.
Parameter | Description |
---|---|
leftIndent | Sets the value of the leftIndent property |
rightIndent | Sets the value of the rightIndent property |
firstLineIndent | Sets the value of the firstLineIndent property |
alignment | Sets the value of the alignment property |
You can specify the ParagraphFormat_Undefined value for a parameter if you do not want to apply a new value but retain the existing value.
Although individual properties enable you to set paragraph formatting attributes, you should consider the number of requests made to the control, particularly when running the JADE application in thin client mode. For example, calling the setParagraphFormat method to set all paragraph format values involves one request from the application server to the presentation client but setting values individually requires four calls to the presentation client to set the same information.