예제 #1
0
 public override int DoDraw(DrawListViewSubItemEventArgs e, int x, EXColumnHeader ch) {    
     EXBoolColumnHeader boolcol = (EXBoolColumnHeader) ch;
     Image boolimg;
     if (this.BoolValue == true) {
         boolimg = boolcol.TrueImage;
     } else {
         boolimg = boolcol.FalseImage;
     }
     int imgy = e.Bounds.Y + ((int) (e.Bounds.Height / 2)) - ((int) (boolimg.Height / 2));
     e.Graphics.DrawImage(boolimg, x, imgy, boolimg.Width, boolimg.Height);
     x += boolimg.Width + 2;
     return x;
 }
예제 #2
0
 public override int DoDraw(DrawListViewSubItemEventArgs e, int x, EXColumnHeader ch) {    
     if (this.MyImages != null && this.MyImages.Count > 0) {
         for (int i = 0; i < this.MyImages.Count; i++) {
             Image img = (Image) this.MyImages[i];
             int imgy = e.Bounds.Y + ((int) (e.Bounds.Height / 2)) - ((int) (img.Height / 2));
             e.Graphics.DrawImage(img, x, imgy, img.Width, img.Height);
             x += img.Width + 2;
         }
     }
     return x;
 }
예제 #3
0
 public override int DoDraw(DrawListViewSubItemEventArgs e, int x, EXColumnHeader ch) {
     return x;
 }
예제 #4
0
 public override int DoDraw(DrawListViewSubItemEventArgs e, int x, EXColumnHeader ch) {
     if (this.MyImage != null) {
         Image img = this.MyImage;
         int imgy = e.Bounds.Y + ((int) (e.Bounds.Height / 2)) - ((int) (img.Height / 2));
         e.Graphics.DrawImage(img, x, imgy, img.Width, img.Height);
         x += img.Width + 2;
     }
     return x;
 }
예제 #5
0
 //return the new x coordinate
 public abstract int DoDraw(DrawListViewSubItemEventArgs e, int x, EXColumnHeader ch);