Adapting the styles
private void ChangeChannelSettings(Channel channel)
{
SeriesStyle seriesStyle = channel.SubMember.OfType<ChannelStyle>().First().SubMember.OfType<SeriesStyle>().First();
seriesStyle.DisplayColor = Color.Green;
seriesStyle.MarkColor = Color.DarkGreen;
seriesStyle.LineWidth = 2;
}
Each of the elements created has "Style" properties as a sub-member, containing all the properties that can also be seen in the corresponding properties window in Visual Studio. For example, color and line width can be assigned in the style classes of a channel.
Overview of the various style hierarchies. The subordinate classes are always located in the SubMember lists of the superordinate class.
Chart
- ChartStyle (general style properties for a chart)
- ChartZoomStyle (configuration option specifying how a chart should react to zoom functions).
AxisGroup
- AspectRatioScalingStyle (configuration option for uniform scaling between the axes)
Axis
- AxisStyle (general style properties for the axis)
Channel
- ChannelStyle (general style properties of a channel)
- CapStyle (style properties of the Graphcaps)
- MinMaxStyle (visibility properties of the minimum and maximum values)
- SeriesStyle (style properties of a graph)