I know how to draw text vertically. My problem is the
StringFormatFla gs.DirectionVer tical command rotates the text 90 degrees
clockwise. I want it rotated 90 degrees counter-clockwise (I'm making a
y-axis label for a chart). How do you do that? Can you do that??
Ken 5 11969
* "Ken Hunt" <yo*@dontneed.t his> scripsit: I know how to draw text vertically. My problem is the StringFormatFla gs.DirectionVer tical command rotates the text 90 degrees clockwise. I want it rotated 90 degrees counter-clockwise (I'm making a y-axis label for a chart). How do you do that? Can you do that??
Untested:
\\\
Private Sub Form1_Paint( _
ByVal sender As Object, _
ByVal e As System.Windows. Forms.PaintEven tArgs _
) Handles MyBase.Paint
e.Graphics.Rota teTransform(270 )
e.Graphics.Draw String("Hello World!", Me.Font, Brushes.Blue, 0, 0)
End Sub
///
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
In article <#c************ **@tk2msftngp13 .phx.gbl>, yo*@dontneed.th is
says... I know how to draw text vertically. My problem is the StringFormatFla gs.DirectionVer tical command rotates the text 90 degrees clockwise. I want it rotated 90 degrees counter-clockwise (I'm making a y-axis label for a chart). How do you do that? Can you do that??
"Text at any angle" http://www.bobpowell.net/angletext.htm
--
Patrick Steele
Microsoft .NET MVP http://weblogs.asp.net/psteele
Hi,
Dim s As String = "Strings at any angle"
e.Graphics.Tran slateTransform( 20, Me.ClientSize.H eight - 20)
e.Graphics.Rota teTransform(270 )
e.Graphics.Draw String(s, Font, Brushes.Black, 50, 0,
StringFormat.Ge nericTypographi c)
Ken
----------------------
"Ken Hunt" <yo*@dontneed.t his> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. I know how to draw text vertically. My problem is the StringFormatFla gs.DirectionVer tical command rotates the text 90 degrees clockwise. I want it rotated 90 degrees counter-clockwise (I'm making a y-axis label for a chart). How do you do that? Can you do that??
Ken
Got to draw your string before you rotate :) Untested:
\\\ Private Sub Form1_Paint( _ ByVal sender As Object, _ ByVal e As System.Windows. Forms.PaintEven tArgs _ ) Handles MyBase.Paint e.Graphics.Rota teTransform(270 ) e.Graphics.Draw String("Hello World!", Me.Font,
Brushes.Blue, 0, 0)End Sub ///
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/> .
* "Eric Fleet" <an*******@disc ussions.microso ft.com> scripsit: Got to draw your string before you rotate :)
Yep, you will need a call to 'TranslateTrans form' too.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rocketman |
last post by:
Can you have Horizontal and Vertical text in a Textbox or RichTextbox
and can u have both together.
|
by: James Dean |
last post by:
Can you make vertical text in a richtextbox or is there any way around
this like make the string vertical outside the textbox then try to paste
it in that way into the textbox?....
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
|
by: Stephen Muecke |
last post by:
I use the following code to draw vertical text in an ownerdrawn StatusBar
The text is drawn top to bottom. Is there a way to have the text drawn
bottom to top?
Stephen
Private Sub FormatClaimPermissions(ByVal sender As System.Object, _
ByVal sbdevent As System.Windows.Forms.StatusBarDrawItemEventArgs) _
Handles ClaimPermissionsHeaderStatusBar.DrawItem, _
ExtensionPermissionsHeaderStatusBar.DrawItem, _
|
by: Stan McCann |
last post by:
Is there a way, or does anyone know if maybe in CSS3, there is a plan to
implement vertical rotated text? At
http://alamo.nmsu.edu/roundup/schedule.html, in the information I was
provided, "Exhibits Open" is shown rotated to the left reading from the
bottom up.
Other than a graphic, is there any way to implement it? Future plans?
--
Stan McCann, "Uncle Pirate" http://stanmccann.us/
|
by: marss |
last post by:
The text for the chart Y-axis title is to be drawn vertically. Here is
the snippet of my code.
.....
StringFormat drawFormat = new StringFormat();
drawFormat.FormatFlags = StringFormatFlags.DirectionVertical ;
//g is object of type System.Drawing.Graphics
g.DrawString("Period", font, Brushes.Black, 10, 10, drawFormat);
.....
Standard functionality allows to do that but the text is drawn from the
| |
by: harvie wang |
last post by:
Hi,
I want to show vertical text in textbox, how to do?
Best Wish,
Harvie
2006-7-16
|
by: pradheepayyanar |
last post by:
I need a table header with text aligned vertically. I wrote a css and it works fine with IE, but mozilla doesn't support that. Is there any other way that we can represent vetical text?
Code i have used:
.verticaltext {
writing-mode: tb-rl;
filter: flipV flipH;
}
|
by: umlv |
last post by:
Hi,
I have a question about vertical text property for labels.
I have set several labels to show vertical text on one of my forms. I
had no problems with them on my desktop computer.
Now I installed the same application on my laptop and the text
disappeared.
The only way I found in order to reveal them was to change the Font to
"Aharoni".
I do not want to use Aharoni. Other computers may not have it
|
by: marfola |
last post by:
I'm trying to implement bottom-to-top vertical text using CSS attributes in IE :
writing-mode: tb-rl;
filter: flipv fliph;
But I have encountered the following: the text is displayed with a grey shadow (instead of anti-alias).
It seems that the problem is caused by the "filter:flip" attribute. Does anyone have a work around? (If I write the same text without the "filter" attribute, the grey shadow disappears but my text...
|
by: Mr Key |
last post by:
Hi!
Vertical text when placed in a report is read from top to bottom,
is it possible to have vertical text so it's read from bottom to top
(rotated 180 degrees from the default)?
Example.
I am working with 2010. In the report if you select yes in the properties for vertical it does place it Vertical.
However, it places text so the bottom of the text aligned with the
left edge of the paper; my question is,
Is there a way to align it...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |