Class LineSeries
- Namespace
- ATAS.Indicators
- Assembly
- ATAS.Indicators.dll
Represents a horizontal line with a single value.
[DataContract]
[DataSeriesEditor(DataSeriesTypes.Line)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public sealed class LineSeries : BaseDataSeries<decimal>, IDataSeries, INotifyPanelPropertyChanged
- Inheritance
-
objectBaseDataSeries<decimal>LineSeries
- Implements
- Extension Methods
Constructors
LineSeries(string)
Initializes a new instance of the LineSeries class with the specified unique and constant data series ID for data serialization.
public LineSeries(string id)
Parameters
idstringThe unique and constant data series ID for data serialization.
LineSeries(string, string)
Initializes a new instance of the LineSeries class with the specified unique and constant data series ID for data serialization and unique name.
public LineSeries(string id, string name)
Parameters
idstringThe unique and constant data series ID for data serialization.
namestringThe unique data series name.
Properties
Color
Color of the line.
[DataMember]
[Display(ResourceType = typeof(Strings), Name = "Color", GroupName = "Common", Description = "LineColorDescription", Order = 20)]
public Color Color { get; set; }
Property Value
- Color
Count
Gets the number of elements in the series (always int.MaxValue).
public override int Count { get; }
Property Value
- int
this[int]
Gets or sets the value at the specified index (always returns the current Value and throws System.NotSupportedException for setting).
public override decimal this[int index] { get; set; }
Parameters
indexint
Property Value
- decimal
LineDashStyle
Style of the line.
[DataMember]
[Display(ResourceType = typeof(Strings), Name = "LineDashStyle", GroupName = "Common", Description = "LineDashStyleDescription", Order = 30)]
public LineDashStyle LineDashStyle { get; set; }
Property Value
Text
Text associated with the line.
[DataMember]
[Display(ResourceType = typeof(Strings), Name = "Text", GroupName = "Common", Description = "LabelTextDescription", Order = 60)]
public string Text { get; set; }
Property Value
- string
UseScale
Indicates whether to use scale.
[DataMember]
[Display(ResourceType = typeof(Strings), Name = "ScaleIt", GroupName = "Common", Description = "UseScaleDescription", Order = 10)]
public bool UseScale { get; set; }
Property Value
- bool
Value
Value of the line.
[DataMember]
[Display(ResourceType = typeof(Strings), Name = "Value", GroupName = "Common", Description = "LineValueDescription", Order = 50)]
[Range(-2000000000, 2000000000)]
public decimal Value { get; set; }
Property Value
- decimal
Width
Width of the line.
[DataMember]
[Display(ResourceType = typeof(Strings), Name = "Width", GroupName = "Common", Description = "LineWidthDescription", Order = 40)]
public int Width { get; set; }
Property Value
- int