Error getting tags :
error 404Error getting tags :
error 404 textStyle | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
textStyle
Basics
Expander triangle
Type
Property
Syntax
set the textStyle of object to {empty | plain | stylesList} set the textStyle of [chunk of] field to {empty | plain | stylesList}
Introduced
1.0
Changed
1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Specifies the style or styles applied to text in an object.
Examples

set the textStyle of line 2 of field "Choices" to "italic,underline"
set the textStyle of the selectedChunk to "box"
set the textStyle of button "Off" to "italic,bold"

Additional Comments
Expander triangle

Use the textStyle property to change the appearance of text.

Value:

The textStyle of an object or chunk is either "plain", empty, "mixed", or one or more of the following, separated by commas:

* bold

* italic

* underline

* strikeout

* box

* threeDbox

* link (or group)

* condensed

* expanded

Comments:

Setting the textStyle to "plain" turns off all styles. (Setting the textStyle to "plain" plus one or more additional styles may result in anomalous behavior.)

Setting the textStyle of an object to empty allows the textStyle of the object's owner to show through. Use the effective keyword to find out what style is used for the object, even if its own textStyle is empty. Similarly, use the effective keyword to find out what style is used for a chunk of text, even if the chunk's textStyle is empty.

If you request the textStyle of a chunk which includes multiple style runs--for example, some bold and some plain text--the property reports "mixed".

The "link" style can be used only for chunks of a field, not for objects. Setting the textStyle of a chunk to "link" turns it into a text group.

Changes to Revolution:

The "link" style was introduced in version 1.1. In previous versions, the term "group" was used. The term "group" is still available as a partial synonym: setting the textStyle of a chunk to "group" sets it to "link".

User Comments
Expander triangle
User thumbnail
aloharo@gmail.com
StarStarStarStarStar
Apr 30, 2009
You can't use 'last' in specifying chunks:

et the textstyle of word 1 of the last line of fld myMessage to "bold"

chokes however

et the textstyle of word 1 of line -1 of fld myMessage to "bold"

works