AxisScrollBar AxisScrollBar AxisScrollBar AxisScrollBar Class


表示圖表軸的捲軸。Represents the scrollbar of a chart axis.

public ref class AxisScrollBar : IDisposable
public class AxisScrollBar : IDisposable
type AxisScrollBar = class
    interface IDisposable
Public Class AxisScrollBar
Implements IDisposable


AxisScrollBar類別公開為ScrollBar屬性Axis類別。The AxisScrollBar class is exposed as the ScrollBar property of the Axis class.

捲軸,可讓使用者捲動時所顯示的資料子集的資料。Scrollbars allow the end user to scroll through data when a subset of data is being displayed. 資料子集稱為 「 檢視中,而且會以表示AxisScaleView類別。A subset of data is referred to as a view, and is represented by the AxisScaleView class.

捲軸只會顯示縮放的發生。Scrollbars are only shown when zooming occurs. 換句話說,即使啟用捲軸時,它才會顯示在檢視所顯示。In other words, even if a scrollbar is enabled, it will only be visible when a view is being displayed.


若要修正的捲軸的位置,繪圖區域位置的圖表區域不會設定為 AutoTo fix the position of scrollbars, the plotting area position of a chart area must not be set to Auto. 若要明確設定的繪圖區位置,使用InnerPlotPosition屬性。To explicitly set the plotting area position, use the InnerPlotPosition property.

若要顯示捲軸,圖表第一次顯示時,請使用AxisScaleView類別屬性和方法,使檢視一開始會顯示給使用者。To display scrollbars when a chart is first displayed, use the AxisScaleView class properties and methods so that a view is initially displayed to end users.

背景色彩,按鈕的色彩和捲軸的寬度可以設定使用此AxisScrollBar類別。The background color, button color and width of scrollbars can be set using this AxisScrollBar class.

請注意,有兩種類型的捲動: 大型向下捲動,其發生於使用者按一下捲軸的背景中也就是捲軸捲動方塊; 未涵蓋該部分和小捲動,發生於使用者按下左/右時或向上/向下 按鈕。Note that there are two main types of scrolling: large scrolling, which occurs when the end user clicks in the background of a scrollbar - that is, that part of a scrollbar not covered by the thumb; and small scrolling, which occurs when the end user clicks a left/right or up/down button. 若要控制大型捲動的大小,請使用Size屬性ScaleView物件。To control the large scrolling size, use the Size property of the ScaleView object. 若要設定小捲動大小,請使用SmallScrollSize屬性AxisScaleView類別。To set the small scrolling size, use the SmallScrollSize property of the AxisScaleView class.


AxisScrollBar() AxisScrollBar() AxisScrollBar() AxisScrollBar()

初始化 AxisScrollBar 類別的新執行個體。Initializes a new instance of the AxisScrollBar class.


Axis Axis Axis Axis

取得使用捲軸的 Axis 物件。Gets the Axis object that uses the scrollbar.

BackColor BackColor BackColor BackColor

取得或設定捲軸的背景色彩。Gets or sets the background color of a scrollbar.

ButtonColor ButtonColor ButtonColor ButtonColor

取得或設定捲軸按鈕的色彩。Gets or sets the color of the scrollbar buttons.

ButtonStyle ButtonStyle ButtonStyle ButtonStyle

取得或設定捲軸按鈕的樣式。Gets or sets the style of the scrollbar button.

ChartArea ChartArea ChartArea ChartArea

取得包含這個捲軸的圖表區域。Gets the chart area that contains this scrollbar.

Enabled Enabled Enabled Enabled

取得或設定旗標,這個旗標會判斷是否已啟用捲軸。Gets or sets a flag that determines whether a scrollbar is enabled.

IsPositionedInside IsPositionedInside IsPositionedInside IsPositionedInside

取得或設定旗標,這個旗標表示是否將捲軸置於圖表區域的內部或外部。Gets or sets a flag that indicates whether scroll bar is positioned inside or outside the chart area.

IsVisible IsVisible IsVisible IsVisible

取得旗標,這個旗標表示捲軸是否可見。Gets a flag that indicates whether the scrollbar is visible.

LineColor LineColor LineColor LineColor

取得或設定捲軸的線條色彩。Gets or sets the line color of a scrollbar.

Size Size Size Size

取得或設定以像素為單位的捲軸寬度。Gets or sets the width of a scrollbar, in pixels.


Dispose() Dispose() Dispose() Dispose()

釋放 AxisScrollBar 目前執行個體所使用的全部資源。Releases all resources used by the current instance of the AxisScrollBar.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋放 AxisScrollBar 類別所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by the AxisScrollBar class and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)