The Text object is designed to mimic JavaScript strings, but with some important differences. The Text object has a length property, for instance, and a substring() method.
But while the length property returns the length of the text itself, the substring() method returns the requested substring plus the HTML tags required to render the substring in the desired font, size, and color.
Leave a Reply
You must be logged in to post a comment.