Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Properties

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

printTextStyle

set the printTextStyle ¬
    to textStyleList
The printTextStyle property returns or sets the value of the default text style used by the print command when you print an expression. The default value is plain.

When you print a report, HyperCard determines the default text style for a report item as follows:

• If the report item is the text of a card or background field, HyperCard uses the text style of the field.

• If the report item is generated from any other HyperTalk expression, HyperCard uses the value of the printTextStyle.

In either case, the user can override the default style by selecting a style in the Item Info dialog box of the report item.


Examples

set the printTextStyle to "bold"
set the printTextStyle to "bold,italic"

Placeholders

textStyleList
One of the following (or a comma-delimited list thereof):

bold
condense
extend
group
italic
outline
plain
shadow
underline
In AppleScript, the comma-delimited list must be enclosed in brackets.

Related Topics

« printTextSize | HyperTalk Reference | rectangle »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Properties

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

printTextStyle

set the printTextStyle ¬
    to textStyleList
The printTextStyle property returns or sets the value of the default text style used by the print command when you print an expression. The default value is plain.

When you print a report, HyperCard determines the default text style for a report item as follows:

• If the report item is the text of a card or background field, HyperCard uses the text style of the field.

• If the report item is generated from any other HyperTalk expression, HyperCard uses the value of the printTextStyle.

In either case, the user can override the default style by selecting a style in the Item Info dialog box of the report item.


Examples

set the printTextStyle to "bold"
set the printTextStyle to "bold,italic"

Placeholders

textStyleList
One of the following (or a comma-delimited list thereof):

bold
condense
extend
group
italic
outline
plain
shadow
underline
In AppleScript, the comma-delimited list must be enclosed in brackets.

Related Topics

« printTextSize | HyperTalk Reference | rectangle »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View