TextBox is used for drawing text, either inside a rectangular box or by flowing it around objects of a
This class uses
TextLayouter behind the scenes to do the hard work.
Public Class Methods
Creates a new
TextBox object with the given inline items (e.g.
Public Instance Methods
Fits the text box into the
Depending on the 'position' style property, the text is either fit into the rectangular area given by
available_height, or fit to the outline of the frame starting from the top (when 'position' is set to :flow).
The spacing after the last line can be controlled via the style property
TextLayouter#style for other style properties taken into account.
Splits the text box into two boxes if necessary and possible.
true as the 'position' style property value :flow is supported.