• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

TextFormat

TextFormat

Method Description Parameters
new TextFormat() Creates a new text format object. 
getTextExtent(text ) Returns an object with properties width and height specifying the pixel dimensions of a single line of text in the formatting of the text format object. text , a single line of text.
Property Description
align Alignment of text (“left”, “center”, or “right”).
blockIndent Indentation of the entire text, in points
bold Bold style, either true or false
bullet Bulleted list, either true or false
color Color of text as a hex code.
font Font of the text
indent Indentation of new paragraphs, in points.
italic Italic style, either true or false
leading Space between lines, in points
leftMargin Space of left margin, in points.
rightMargin Space of right margin, in points.
size Size of text, in points.
tabStops Point distances of tab stops as an array of numbers.
target Target window where a hyperlink is displayed.
underline Underline style, either true or false.
URL URL that the text links to.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint