private SizeF GetItemSize(Graphics g, FomulaItem item) { return g.MeasureString(item.ItemName, this.Font); }
private void MergeNum(FomulaItem pre, FomulaItem cur, int curItemIndex) { }
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); }