In my indicator I draw some lines (via DrawLine). I would like to set their style, color and width per indicator parameter. But each property like individual parameter is too bit uncomfortable.
I tried to use private Line variable and parameter of Line type...It could be good, but it has expect Color, DashStyle and Width (which I need) also Value property..it is stupid for this situation..it has no sense.
My question is if there exists some other class I could use for this situation (just Width, DashStyle and Color properties) or if I have to do my own class. I tried to do my own class SimpleLine, but parameter of SimpleLine type appeared in gray color and instead of value..there is just class name and of course its not expandable.
Could you help me somehow ??
My simple class for testing is:
public class SimpleLineClass
{
public Color Color {get;set;}
public int Width {get;set;}
public DashStyle DashStyle {get;set;}
public SimpleLineClass(Color color, int width, DashStyle dashstyle)
{
this.Color = color;
this.Width = width;
this.DashStyle = dashstyle;
}
}
Or class must have some interface or directive ??
Thanks
Alex
Comment