RichText.SetSelectionFormat

RichText.SetSelectionFormat (

string ObjectName,

table CharacterFormat,

boolean ApplyToWord = false )

Example 1

-- Create a table for the formatting.
tbFormat = {Bold=true};

-- Set the selected text to bold.
RichText.SetSelectionFormat("RichText1", tbFormat, false);

Sets the selected text in the "RichText1" richtext object to Bold.

See also: Related Actions