Profile Picture

Text Orientation problem

Posted By Alexandr S. 14 Years Ago
Author
Message
Alexandr S.
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 23, Visits: 6
I want to draw a vertical text on the Chart. Here is the code of the INPaintCallback implementation:

public void OnAfterPaint(NPanel panel, NPanelPaintEventArgs eventArgs)
{

string label = "test";
var yStyle = new NTextStyle(new Font("Arial", 12), Color.Red);
yStyle.Orientation = 90;
eventArgs.Graphics.PaintText(label, yStyle, new NPointF(100,100));
}


But text rendered horizontal. How can I rotate it?




Similar Topics


Reading This Topic