Profile Picture

How to set label in the rectangle

Posted By shweta jain 5 Years Ago
Author
Message
shweta jain
Posted 5 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 16, Visits: 192
Hi,
I want to set label in the rectangle. For creating rectangle I have used NGraphicsPathSeries class, so how can I set label under this rectangle.
I have used this code for create rectangle-
NGraphicsPathSeries pathSeries= new NGraphicsPathSeries();
    NGraphicsPath rectangle = new NGraphicsPath();
    pathSeries.AddRectangle(50, 50, 10, 10);
    pathSeries.FillStyle = new NColorFillStyle(red);
    pathSeries.GraphicsPath = rectangle;
    _cartesianChart.Series.Add(pathSeries);
    pathSeries.DisplayOnAxis(StandardAxis.PrimaryY, true);
    pathSeries.DisplayOnAxis(StandardAxis.PrimaryX, false);
    pathSeries.DisplayOnAxis(visibleXAxis.AxisId, true);





Similar Topics


Reading This Topic