OutputDocument.SetTextStyle

Prototypes

void SetTextStyle( int nStyle )

Parameters

int nStyle
A predefined constant specifying the desired style. The valid values are STYLE_REGULAR, STYLE_BOLD, STYLE_ITALIC, and STYLE_BOLDITALIC.

Remarks

This method sets the style of subsequent textual output.

Example
x = ranuni( 1:5 );
print x;

declare OutputDocument doc = OutputDocument.GetDefault();
doc.SetTextStyle( STYLE_BOLD );
doc.SetTextColor( RED );
print "Some important message";
doc.SetTextDefaultFont();

x = ranuni( 1:5 );
print x;
See Also

OutputDocument.SetTextFont