![](/img/trans.png)
[英]Is it possible to query the WebBrowser control whether the horizontal scrollbar is visible?
[英]Chart control is it possible to position the horizontal scrollbar?
不,您不能直接定位滾動條。
但是,你可以移動滾動條出innerplot面積:
yourXAxis.ScrollBar.IsPositionedInside = false;
或稍微向上移動x軸(!):
Axis ay = yourChartArea.AxisY;
ay.Interval = 2; // pick your interval!
ay.Minimum = -0.75f; // pick a value that works for you
ay.IntervalOffset = -ay.Minimum; // adapt the interval
注意,這不是以像素為單位,而是以Axis的數據值! 您可以使用PixelPositionToValue
和ValueToPixelPosition
函數在PrePaint
或PostPaint
事件中轉換像素<->值。
結果如下:在IsPositionedInside = false
之前,之后以及在移動x軸之后:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.