}
/// <summary>
- /// 指定した座標までスクロールする
- /// </summary>
- /// <param name="x"></param>
- /// <param name="row"></param>
- /// <remarks>
- /// 範囲外の座標を指定した場合、範囲内に収まるように調整されます
- /// </remarks>
- public void Scroll(double x, double y)
- {
- if (x < 0)
- x = 0;
- if (y < 0)
- y = 0;
- double totalHeight = this.LayoutLines.Count * this.render.emSize.Height;
- if (y > totalHeight)
- y = totalHeight - this.render.TextArea.Height;
- base.TryScroll(x, y);
- }
-
- /// <summary>
/// 指定行までスクロールする
/// </summary>
/// <param name="row">行</param>