Exemple #1
0
 private SizeF GetItemSize(Graphics g, FomulaItem item)
 {
     return g.MeasureString(item.ItemName, this.Font);
 }
Exemple #2
0
 private void MergeNum(FomulaItem pre, FomulaItem cur, int curItemIndex)
 {
 }
Exemple #3
0
        private void DrawItem(Graphics g, FomulaItem item, RectangleF rect, bool selected)
        {
            Color textColor = selected ? this.selTextColor : this.ForeColor;
            Color bkColor = selected ? this.selBackColor : this.BackColor;

            g.FillRectangle(new SolidBrush(bkColor), rect);
            g.DrawString(item.ItemName, this.Font, new SolidBrush(textColor), rect);
        }