Skip to main content

Overview

This function returns the width, in points, of a string based on the properties of a targeted text element.

Parameters

stringWidth(object, string)
  • Object: The text element whose properties determine how the width is measured.
  • String: The string whose width you want to measure.