OverviewExamples
Paragraph.SetProperties ( |
-- Prompt the user for a text file to load
sLoadFileName = Dialog.FileBrowse(true, "Load TXT File", "", "All Files (*.*)|*.*|", "", "", false, false)[1];
-- Load the selected file into a string
sString = TextFile.ReadToString(sLoadFileName);
-- Initialize property table
tProperties = {Text=sString};
-- Set the properties of a paragraph object
Paragraph.SetProperties("Slogan", tProperties);
Loads the contents of a file selected by the user into a paragraph object.
See also: Related Actions