public static int DashStyleToIndex(DashStyle2 dashStyle) { switch (dashStyle){ case DashStyle2.Solid: return 0; case DashStyle2.Dash: return 1; case DashStyle2.Dot: return 2; case DashStyle2.DashDot: return 3; case DashStyle2.DashDotDot: return 4; default: throw new ArgumentException(); } }
public static int DashStyleToIndex(DashStyle2 dashStyle) { switch (dashStyle) { case DashStyle2.Solid: return(0); case DashStyle2.Dash: return(1); case DashStyle2.Dot: return(2); case DashStyle2.DashDot: return(3); case DashStyle2.DashDotDot: return(4); default: throw new ArgumentException(); } }
public LineProperties(Color2 color, int size, DashStyle2 dashStyle) { Color = color; Width = size; DashStyle = dashStyle; }