Lingo Dictionary > A-C > alignment |  |

alignment

Syntax

    member(whichCastMember).alignment
    the alignment of member whichCastMember

Description

Cast member property; determines the alignment used to display characters within the specified cast member. This property appears only to field and text cast members containing characters, if only a space.

For field cast members, the value of the property is a string consisting of one of the following: left, center, or right.

For text cast members, the value of the property is a symbol consisting of one of the following: #left, #center, #right, or #full.

The parameter `whichCastMember` can be either a cast name or a cast number.

This property can be tested and set. For text cast members, the property can be set on a per-paragraph basis.

Example

This statement sets the variable named `characterAlign` to the current `alignment` setting for the field cast member Rokujo Speaks:

Dot syntax:

    characterAlign = member("Rokujo Speaks").alignment

Verbose syntax:

    set characterAlign = the alignment of member "Rokujo Speaks"

Example

This repeat loop consecutively sets the alignment of the field cast member Rove to left, center, and then right.

Dot syntax:

    repeat with i = 1 to 3
    	member("Rove").alignment = ("left center right").word[i]
    end repeat

Verbose syntax:

    repeat with i = 1 to 3
    	set the alignment of member "Rove" to word i of "left center right"
    end repeat

See also

`text`, `font`, `lineHeight (cast member property)`, `fontSize`, `fontStyle`, `& (concatenator)`, `&& (concatenator)`