AGK for Pascal
TAgkText.TotalWidth Property

Returns the current width of the text object in world units.

property TotalWidth: Single;

If the text object is displaying text over multiple lines it will return the width of the longest line. This does not take into account the individual offsets of characters, if you have used SetCharPos or similar to move a character. The returned value is the width used by the default drawing position of the text characters.

Copyright (c) 2012. All rights reserved.