Summary
Draws the text.
Syntax
public ChartText DrawText(string name, string text, DateTime time, double y, Color color)
public ChartText DrawText(string name, string text, int barIndex, double y, Color color)
Parameters
Name | Description |
---|
Example 1
// Draw the text on the last bar high. var highPrice = MarketSeries.High.LastValue; var openTime = MarketSeries.OpenTime.LastValue; var text = Chart.DrawText("text1", "High is here", openTime, highPrice, Color.Red); text.VerticalAlignment = VerticalAlignment.Bottom; text.HorizontalAlignment = HorizontalAlignment.Center;