Xceed Chart for WinForms v4.4 Documentation
LineProperties Property (Appearance)
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Appearance Class : LineProperties Property
Gives you access to the series of LineProperties.
Syntax
'Declaration
 
<DescriptionAttribute("Data series containing line properties.")>
<CategoryAttribute("Data Series")>
Public Property LineProperties As DataSeries
'Usage
 
Dim instance As Appearance
Dim value As DataSeries
 
instance.LineProperties = value
 
value = instance.LineProperties
[Description("Data series containing line properties.")]
[Category("Data Series")]
public DataSeries LineProperties {get; set;}
Remarks
If the LineMode property is set to AppearanceLineMode.DataPoints, the component will iterate through the line properties contained in this data series.
Example
The following code adds red, green and blue color line properties in the LineProperties data series, and instructs the line series associated with it to cycle through it.

Thus the first line segment will be displayed in red, the second in green, the third in blue, the fourth in red again and so on.

line.Appearance.LineMode = AppearanceLineMode.DataPoints
line.Appearance.LineProperties.Clear()

Dim lp As LineProperties
lp = New LineProperties(1, Color.Red)
line.Appearance.LineProperties.Add(lp)

lp = New LineProperties(1, Color.Green)
line.Appearance.LineProperties.Add(lp)

lp = New LineProperties(1, Color.Blue)
line.Appearance.LineProperties.Add(lp)
line.Appearance.LineMode = AppearanceLineMode.DataPoints;
line.Appearance.LineProperties.Clear();

LineProperties lp;
lp = new LineProperties(1, Color.Red);
line.Appearance.LineProperties.Add(lp);

lp = new LineProperties(1, Color.Green);
line.Appearance.LineProperties.Add(lp);

lp = new LineProperties(1, Color.Blue);
line.Appearance.LineProperties.Add(lp);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Appearance Class
Appearance Members