NPlot.TextItem.Draw C# (CSharp) Метод

Draw() публичный Метод

Draws the text on a plot surface.
public Draw ( Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void
g System.Drawing.Graphics graphics surface on which to draw
xAxis PhysicalAxis The X-Axis to draw against.
yAxis PhysicalAxis The Y-Axis to draw against.
Результат void
        public void Draw(Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis)
        {
            Point startPoint = new Point(
                (int)xAxis.WorldToPhysical(start_.X, true).X,
                (int)yAxis.WorldToPhysical(start_.Y, true).Y);

            g.DrawString(text_, font_, textBrush_, (int)startPoint.X, (int)startPoint.Y);
        }