protected override void DrawForeground(DrawTreeNodeEventArgs e) { Graphics g = e.Graphics; float x = e.Bounds.X; DrawText(e, positionText, SystemBrushes.WindowText, RegularBigFont, ref x); if (specialText != null) { DrawText(e, specialText, SystemBrushes.WindowText, RegularBigFont, ref x); } else { x -= e.Bounds.X; drawableLine.DrawLine(g, ref x, e.Bounds.X, e.Bounds.Y, GetTextColor(e.State, Color.Empty)); } if (ShowFileName) { float tabWidth = drawableLine.GetSpaceSize(g).Width * 6; x = (int)((int)((x + 2 + tabWidth) / tabWidth) * tabWidth); x += e.Bounds.X; DrawText(e, FileNameText, SystemBrushes.GrayText, ItalicBigFont, ref x); } }