private void LineStyleListBox_DrawItem(object sender, DrawItemEventArgs e)
 {
     e.DrawBackground();
     LineStyleEditorStuff.DrawSamplePen(e.Graphics, e.Bounds, Color.Black, (DashStyle)e.Index);
 }
示例#2
0
 public override void PaintValue(PaintValueEventArgs e)
 {
     e.Graphics.FillRectangle(Brushes.White, e.Bounds);
     LineStyleEditorStuff.DrawSamplePen(e.Graphics, e.Bounds, Color.Black, (DashStyle)e.Value);
 }