Inheriting from Line serie
Posted: Fri Apr 08, 2022 2:33 pm
I need to inherit my OwnLine series from Line series. It works perfectly except when selected in ChartEditor dialog.
Any override I'm missing?
Thanks a lot.
Any override I'm missing?
Thanks a lot.
public class TSWXLineSerie : Line
{
public TSWXLineSerie() : base()
{
}
public TSWXLineSerie(TChart chart) : base(chart.Chart)
{
this.VertAxis = VerticalAxis.Left;
this.HorizAxis= HorizontalAxis.Bottom;
}
public TSWXLineSerie(TChart chart, HorizontalAxis x, VerticalAxis y) : base(chart.Chart)
{
//this.ChartType = SeriesChartType.Line;
this.HorizAxis = x;
this.VertAxis = y;
}
public TSWXLineSerie(TChart chart, string sName) :base(chart.Chart)
{
//this.ChartType = SeriesChartType.Line;
this.Title = sName;
}
public TSWXLineSerie(TChart chart, string sName, HorizontalAxis x, VerticalAxis y) : base(chart.Chart)
{
//this.ChartType = SeriesChartType.Line;
this.HorizAxis = x;
this.VertAxis = y;
this.Title = sName;
}
public override string ToString()
{
return "TSWXLineSerie|Unit Enabled Series";
}
public override string Description
{
get
{
return "SimWorx Line Series";
}
}
public override ObjRef CreateObjRef(Type requestedType)
{
return base.CreateObjRef(requestedType);
} ....