Adapting the styles
private void ChangeChannelSettings(Channel channel)
{
SeriesStyle style = channel.SubMember.OfType<ChannelStyle>().First().SubMember.OfType<SeriesStyle>().First();
style.DisplayColor = Color.Blue;
style.MarkColor = Color.DarkBlue;
style.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)