Icon ContentWidth Method

function ContentWidth(AFont: TFont; const AContent: String;
      AHTMLContent: Boolean=False; AAlignment:
      TContentAlignment=caLeft; ADirection:
      TContentDirection=cdLeftToRight; AWrap: Boolean=False;
      AWrapWidth: Integer=0): Integer

Available In: Visual Client Applications

Use this method to measure the width of text content using the specified font and formatting parameters.
Image