TextFormatFlags.TabStop?

Hi Guys,

What is the difference between TextFormatFlags.ExpandTabs and TextFormatFlags.TabStop? Or, rather, how do you set tab stops, or use TextFormatFlags and TextRenderer to provide the same tab stop behavior as StringFormat?

Thanks,
Michael Weinhardt

[262 byte] By [MichaelWeinhardt] at [2008-2-24]
# 1
TextRenderer.DrawText is a thin wrapper around GDI DrawText API.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_0odw.asp

They should correspond to DT_TABSTOP and DT_EXPANDTABS... It looks like you would possibly have to bitwise OR in the value for the tabstop to change it to be something other than 8.

Jessica at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...