The code that draws the text is this:
OnRender()
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
if(!ViewText || State < State.Realtime)
{
return;
}
if(chartControl == null || chartScale == null || ChartBars == null)
{
return;
}
base.OnRender(chartControl, chartScale);
Text = String.Format(
"Count: {0} Width: {1} Space: {2}",
ChartBars.ToIndex - ChartBars.FromIndex + 1,
chartControl.BarWidth.ToString("0.00"),
chartControl.Properties.BarDistance.ToString("0.00 ")
);
Draw.TextFixed(this, "ZoomReset_Text", Text, Positioner);
}
endregion
If I create a simple font and then add more parameters to Draw.TextFixed such as the Brushes.Color I get an error saying:
brushes do not exist in this context

Comment