Drawing wrapped text

  • Thread starter Thread starter Sam Martin
  • Start date Start date
S

Sam Martin

Hi all,

I want to be able to draw wrapped text started at a point x into the
rectangle on the first line
If there's not a GDI+ method for this, i'm guessing it's a common technique,
but can't seem to find an example.

for example

normal DrawString(string, font, brush, xpos, width) (from memory)

so this is fine for drawing

My name is sam
and drawstring
automatically
wrapped this for
me.

however, i want to start the first line 50px in
i.e.

My name
is sam and
drawstring
automatically
wrapped this for
me.

See what i mean?

any help appreaciated

sam
 
You must specify rectangle of your text position and then GDI+ it self will
wrap your text.
 
yeah, i know.
but don't necessary want to start the text rendering at point 0,0 or the
block.

how would you go about inserting an indent?
tia
sam
 
Back
Top