Click here to Skip to main content
15,885,921 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
stripline = new StripLine();

               stripline.BorderDashStyle = ChartDashStyle.Dash;
               stripline.Interval = 0;


               stripline.BorderWidth = 10;
               /
               stripline.IntervalOffset = 0.001;

               stripline.StripWidth = 0.00001;

               stripline.BackColor = Color.Black;



i Am trying to add stripline to chart . i have achieved stripline adding

Now i want to make that stripline style Dash i have tried using

stripline.BorderDashStyle = ChartDashStyle.Dash;

Can any one look the code and need full

Thanku
Posted
Updated 19-Feb-19 22:27pm

1 solution

chrt.ChartAreas[0].AxisX.StripLines.Add(new StripLine() { StripWidth = 0.0001, BorderDashStyle = ChartDashStyle.Dot, BorderWidth = 5, Text = "Section 1", IntervalOffset = 10, BorderColor = Color.Red, BackColor = Color.Red });

Don't forget to set BorderColor.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900