int GetLineInCenter(MonoTextEditor editor) { double midY = editor.VAdjustment.Value + editor.Allocation.Height / 2; return(editor.YToLine(midY)); }
int GetLineInCenter(MonoTextEditor editor) { double midY = editor.VAdjustment.Value + editor.Allocation.Height / 2; return(editor.YToLine(midY)); }