by Nevron - Product Type: Component / ASP.NET WebForms / ASP.NET AJAX (ATLAS) / .NET WinForms / .NET Class / 100% Managed Code / AJAX
I am trying to play with the orientation of the text displayed inside the text of the NShapes while using Nevron Diagrams but unable to do so here is the code anybody can help me with what am I missing?
NShape newShape = null;
//we have set 1 for the oval
newShape = factory.CreateShape((int)FlowChartingShapes.Termination);
newShape.Name = "my name";
newShape.Bounds = new NRectangleF(10, 100, 100,100);
newShape.Text = "Text inside me ";
text1.Mode = BoxTextMode.Stretch;
//newShape.Style.TextStyle.Orientation = 90;
ATDrawingdocument.ActiveLayer.AddChild(newShape);
I get an exception on the line that I have commensted.
Reply
RE: Nevron Diagram for .NET khan.kamran [Pakistan] 09-Oct-2008 11:39:49
please follow the following pattern to apply text style
NTextStyle textStyle = new NTextStyle();
NFontStyle fontStyle = new NFontStyle("Tahoma", 30);
textStyle.FontStyle = fontStyle;
textStyle.Orientation = 90;
newShape.Style.TextStyle = textStyle;
Reply