In theory you could set artLayer.TextItem.widht/height to the values of the bounding box (have not tried, but docs say it's read-write). However the width and height are a bit challenging because they ignore transforms, i.e. if the text box has been resized. You'd have to fetch scale factors using action descriptors and calculate unscaled size and set that. See below discussion for details
↧