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.Form atFlags = StringFormatFla gs.DirectionVer tical ;
//g is object of type System.Drawing. Graphics
g.DrawString("P eriod", font, Brushes.Black, 10, 10, drawFormat);
.....
Standard functionality allows to do that but the text is drawn from the
top to the bottom whereas I need the text to be drawn from the bottom
to the top (as it is more usual for users). How can I do it? 2 2190
There might be a way to do it, but I wonder if you are accomplishing with your code the same thing that can be accomplished using CSS:
<div style="writing-mode: tb-rl;">This is a test</div>
This type of vertical text is for foreign language support and is not a complete vertical text feature.
--
Greg Collins [InfoPath MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Greg Collins [InfoPath MVP] wrote: There might be a way to do it, but I wonder if you are accomplishing with your code the same thing that can be accomplished using CSS:
<div style="writing-mode: tb-rl;">This is a test</div>
This type of vertical text is for foreign language support and is not a complete vertical text feature.
-- Greg Collins [InfoPath MVP] Visit Brain Trove ( http://www.BrainTrove.com )
Thanks for help. It is interesting and usefull feature of CSS I don't
know before.
Solution of my problem was prompted in another group yet. It can be
resolved with rotating X and Y axis before drawing (methods
TranslateTransf orm and RotateTransform of System.Drawing. Graphics
object). This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kai Grossjohann |
last post by:
I have a file which contains component definitions, along with their
x/y coordinates and width and height. Examples for components are a
short text string, a text entry field, a date entry field, a
selection box, a checkbox.
The aim is to produce an HTML page that looks like those definitions
specify.
So I computed a grid which covers all the corners of all components
(actually only top left corners) and created an HTML table with
|
by: Jerry |
last post by:
Hi,
I want to draw a reverse string, does anyone know how to implement it?
And I want to draw a vertical string, it can be implemented by setting
StringFormat.StringFormatFlags DirectionVertical, but it's not the effect I
expected. I want to get reverse vertical string, like the number of MS Word
vertical ruler. How to implement it?
|
by: Maileen |
last post by:
Hi,
I would like to know if under VB.NET exist some component which allow us
to draw a 3D line (instead to draw 2 lines - 1 white and 1 dark grey) ?
thanks a lot,
Maileen
|
by: MrNobody |
last post by:
I made a custom user control which is supposed to be my own little simple gui
data table and I extend from UserControl and set it's autoscroll property to
true yet as I draw outside the vertical bounds and my grpahics are getting
clipped it's not providing me with vertical scroll bars...
also does anyone have any general tips on how to handle drawing for
something like a data table? For example, if someone selects one row, and I
want to...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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...
| |