コード例 #1
0
        int GetLineInCenter(MonoTextEditor editor)
        {
            double midY = editor.VAdjustment.Value + editor.Allocation.Height / 2;

            return(editor.YToLine(midY));
        }