GetCell() 공개 메소드

public GetCell ( int Row, string Column ) : string
Row int
Column string
리턴 string
예제 #1
0
 public GlyphImage(string ID)
 {
     if (db.GetRows("select * from images where img_id = " + ID))
     {
         this.ID      = ID;
         this.GlyphID = db.GetCell(0, "img_glyph_id");
         this.Path    = db.GetCell(0, "img_path");
         this.Status  = db.GetCell(0, "img_status");
     }
 }
예제 #2
0
        public Glyph(string ID, bool LoadImages)
        {
            if (db.GetRows("select * from glyphs where glyph_id = " + ID))
            {
                this.ID        = ID;
                this.FontID    = db.GetCell(0, "glyph_font_id");
                this.Unicode   = db.GetCell(0, "glyph_unicode");
                this.Frequency = System.Convert.ToInt32(db.GetCell(0, "glyph_frequency"));
                this.XOffset   = System.Convert.ToInt32(db.GetCell(0, "glyph_x_offset"));
                this.YOffset   = System.Convert.ToInt32(db.GetCell(0, "glyph_y_offset"));
            }

            if (LoadImages)
            {
                RefreshImages();
            }
        }
예제 #3
0
        public Font(string ID, bool LoadGlyphs, bool LoadImages)
        {
            if (db.GetRows("select * from fonts where font_id = " + ID))
            {
                this.ID         = ID;
                this.LangID     = db.GetCell(0, "font_lang_id");
                this.Name       = db.GetCell(0, "font_name");
                this.LineHeight = System.Convert.ToInt32(db.GetCell(0, "font_line_height"));
                this.Italic     = System.Convert.ToInt32(db.GetCell(0, "font_italic"));
                this.Bold       = System.Convert.ToInt32(db.GetCell(0, "font_bold"));
                this.Fixed      = System.Convert.ToInt32(db.GetCell(0, "font_fixed"));
                this.Serif      = System.Convert.ToInt32(db.GetCell(0, "font_serif"));
                this.Fraktur    = System.Convert.ToInt32(db.GetCell(0, "font_fraktur"));
            }

            if (LoadGlyphs)
            {
                RefreshGlyphs(LoadImages);
            }
        }