Draws multi-line text string to canvas, wrapping the text on word boundaries. The MaxWidth specifies the maximum width of each line.
Namespace: RSGraphics
Delphi |
function WrapCanvasText(const Canvas: TCanvas; Text: string; MaxWidth: TRSGfxFloat): String; overload; |
Parameters
Canvas
Type: TCanvas
Canvas to draw on
Text
Type: string
Multi-line text to draw
MaxWidth
Type: System.Void
Maximum width of each line
Type: String
Reference |