public override void AddRedraw(HexEditor editor) { Margin margin = editor.Margins.FirstOrDefault(m => m.GetType() == MarginType); if (margin != null) { editor.RepaintMarginArea(margin, margin.XOffset, (int)(Line * editor.LineHeight - editor.HexEditorData.VAdjustment.Value), margin.Width, editor.LineHeight); } }