AxisScrollBar 類別

定義

表示圖表軸的捲軸。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
實作

備註

類別會公開ScrollBarAxis類別的屬性。 AxisScrollBarThe 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. 資料的子集稱為「視圖」 (view), 由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 類別的新執行個體。Initializes a new instance of the AxisScrollBar class.

屬性

Axis

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

BackColor

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

ButtonColor

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

ButtonStyle

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

ChartArea

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

Enabled

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

IsPositionedInside

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

IsVisible

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

LineColor

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

Size

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

方法

Dispose()

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

Dispose(Boolean)

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

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

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

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
MemberwiseClone()

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

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於