Drawing wrapped text

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
 
G

Guest

You must specify rectangle of your text position and then GDI+ it self will
wrap your text.
 
S

Sam Martin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top