コード例 #1
0
ファイル: DiffView.cs プロジェクト: zenek-y/monodevelop
		public int GetLineInCenter (Mono.TextEditor.MonoTextEditor editor)
		{
			double midY = editor.VAdjustment.Value + editor.Allocation.Height / 2;
			return editor.YToLine (midY);
		}