Nevron Diagram for .NET - Enterprise - Support

von Nevron - Produkttyp: Komponente / ASP.NET WebForms / ASP.NET AJAX (ATLAS) / .NET WinForms / .NET Class / 100% Managed Code / AJAX

Forum

Nevron Diagram for .NET aayub [Bahrain] 21-May-2008 08:54:36

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.
Antworten

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;
Antworten


Produkt-Suche

Suchbegriffe eingeben:

Award