By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,460 Members | 1,508 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,460 IT Pros & Developers. It's quick & easy.

Text orientation

P: n/a
Hi, I have a list of names from a database such as

Smith
Jones
Baker
Stocks
Chapman
Peters

I would like to display these names as the header of related data as follows

S J B S C P
m o a t h e
i n k o a t
t e e c p e
h s r k m r
s a s
n
or, as below, but each name rotated 90 degrees anti-clockwise. Much like
what you can do with a word table cell and it's text direction.

Smith Jones Baker Stocks Chapman Peters

Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

you need to do something like the following to rotate the text thru
90degrees
It should center the text vertically about x, y

StringFormatFlags sff = StringFormatFlags.DirectionVertical;
StringFormat vcFormat = new StringFormat(sff);

vcFormat.Alignment = StringAlignment.Center;

myGraphics.DrawString(text, font, brush, x, y, vcFormat);
Steve

On Fri, 11 Mar 2005 00:43:03 -0800, jez123456
<je*******@discussions.microsoft.com> wrote:
Hi, I have a list of names from a database such as

Smith
Jones
Baker
Stocks
Chapman
Peters

I would like to display these names as the header of related data as follows

S J B S C P
m o a t h e
i n k o a t
t e e c p e
h s r k m r
s a s
n
or, as below, but each name rotated 90 degrees anti-clockwise. Much like
what you can do with a word table cell and it's text direction.

Smith Jones Baker Stocks Chapman Peters


Nov 16 '05 #2

P: n/a
The list is in a windows form as a datagrid, but I can't get the list to
display horizontally. Is this possible?

Thanks

"stephen bull" wrote:

you need to do something like the following to rotate the text thru
90degrees
It should center the text vertically about x, y

StringFormatFlags sff = StringFormatFlags.DirectionVertical;
StringFormat vcFormat = new StringFormat(sff);

vcFormat.Alignment = StringAlignment.Center;

myGraphics.DrawString(text, font, brush, x, y, vcFormat);
Steve

On Fri, 11 Mar 2005 00:43:03 -0800, jez123456
<je*******@discussions.microsoft.com> wrote:
Hi, I have a list of names from a database such as

Smith
Jones
Baker
Stocks
Chapman
Peters

I would like to display these names as the header of related data as follows

S J B S C P
m o a t h e
i n k o a t
t e e c p e
h s r k m r
s a s
n
or, as below, but each name rotated 90 degrees anti-clockwise. Much like
what you can do with a word table cell and it's text direction.

Smith Jones Baker Stocks Chapman Peters


Nov 16 '05 #3

P: n/a

sorry I haven't used datagrids much. I can't help you on that.
On Fri, 11 Mar 2005 07:53:02 -0800, jez123456
<je*******@discussions.microsoft.com> wrote:
The list is in a windows form as a datagrid, but I can't get the list to
display horizontally. Is this possible?

Thanks

"stephen bull" wrote:

you need to do something like the following to rotate the text thru
90degrees
It should center the text vertically about x, y

StringFormatFlags sff = StringFormatFlags.DirectionVertical;
StringFormat vcFormat = new StringFormat(sff);

vcFormat.Alignment = StringAlignment.Center;

myGraphics.DrawString(text, font, brush, x, y, vcFormat);
Steve

On Fri, 11 Mar 2005 00:43:03 -0800, jez123456
<je*******@discussions.microsoft.com> wrote:
>Hi, I have a list of names from a database such as
>
>Smith
>Jones
>Baker
>Stocks
>Chapman
>Peters
>
>I would like to display these names as the header of related data as follows
>
>S J B S C P
>m o a t h e
>i n k o a t
>t e e c p e
>h s r k m r
> s a s
> n
>
>
>or, as below, but each name rotated 90 degrees anti-clockwise. Much like
>what you can do with a word table cell and it's text direction.
>
>Smith Jones Baker Stocks Chapman Peters



Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.