Represents a strip line within a chart control's diagram.
[TypeConverter(typeof(StripTypeConverter))] public class Strip : ChartElementNamed, IStrip, ICheckableLegendItemData, ILegendItemData, ISupportInitialize, IXtraSerializable, ICheckableLegendItem, ILegendItem
<TypeConverter(GetType(StripTypeConverter))> Public Class Strip Inherits ChartElementNamed Implements IStrip, ICheckableLegendItemData, ILegendItemData, ISupportInitialize, IXtraSerializable, ICheckableLegendItem, ILegendItem
Related API Members
The following members accept/return Strip objects:
The Strip class contains settings that define the functionality of strips within a chart control's diagram.
Strip objects associated with a particular axis are contained within the axis's Axis2D.Strips collection which is represented by an object of the StripCollection type. A particular Strip object can be accessed within the collection using either indexer notation (see the StripCollection.Item property) or by its name using the specific methods of the collection (see the StripCollection.GetStripByName method).
For more information, refer to Strips.
This example demonstrates how strips can be created and customized at runtime.
// Cast the chart's diagram to the XYDiagram type, to access its axes. XYDiagram diagram = (XYDiagram)chartControl1.Diagram; // Create a strip with its maximum and minimum axis value defined. diagram.AxisY.Strips.Add(new Strip("Strip 1", 5, 15)); // Customize the strip's behavior. diagram.AxisY.Strips.Visible = true; diagram.AxisY.Strips.ShowAxisLabel = true; diagram.AxisY.Strips.AxisLabelText = "My Range"; diagram.AxisY.Strips.ShowInLegend = true; diagram.AxisY.Strips.LegendText = "A Sample Strip"; // Customize the strip's appearance. diagram.AxisY.Strips.Color = Color.CornflowerBlue; diagram.AxisY.Strips.FillStyle.FillMode = FillMode.Empty;