ScrollPattern 類別

定義

代表可當成子項目集合捲動式容器使用的控制項。Represents controls that act as scrollable containers for a collection of child elements. 這個項目的子系支援 ScrollItemPatternThe children of this element support ScrollItemPattern.

public ref class ScrollPattern : System::Windows::Automation::BasePattern
public class ScrollPattern : System.Windows.Automation.BasePattern
type ScrollPattern = class
    inherit BasePattern
Public Class ScrollPattern
Inherits BasePattern
繼承
ScrollPattern

備註

如需可執行此控制項模式的控制項範例,請參閱 消費者介面自動化用戶端的控制項模式對應See Control Pattern Mapping for UI Automation Clients for examples of controls that may implement this control pattern.

欄位

HorizontallyScrollableProperty

識別 HorizontallyScrollable 屬性。Identifies the HorizontallyScrollable property.

HorizontalScrollPercentProperty

識別 HorizontalScrollPercent 屬性。Identifies the HorizontalScrollPercent property.

HorizontalViewSizeProperty

識別 HorizontalViewSize 屬性。Identifies the HorizontalViewSize property.

NoScroll

指定不應該執行捲動。Specifies that scrolling should not be performed.

Pattern

識別 ScrollPattern 控制項模式。Identifies the ScrollPattern control pattern.

VerticallyScrollableProperty

識別 VerticallyScrollable 屬性。Identifies the VerticallyScrollable property.

VerticalScrollPercentProperty

識別 VerticalScrollPercent 屬性。Identifies the VerticalScrollPercent property.

VerticalViewSizeProperty

識別 VerticalViewSize 屬性。Identifies the VerticalViewSize property.

屬性

Cached

取得這個的快取消費者介面自動化屬性值 ScrollPatternGets the cached UI Automation property values for this ScrollPattern.

Current

取得這個的目前消費者介面自動化屬性值 ScrollPatternGets the current UI Automation property values for this ScrollPattern.

方法

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 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
Scroll(ScrollAmount, ScrollAmount)

水平和垂直捲動內容區域的可見區域。Scrolls the visible region of the content area horizontally and vertically.

ScrollHorizontal(ScrollAmount)

將內容區域的目前可見區域水平捲動指定的 ScrollAmountScrolls the currently visible region of the content area, horizontally, the specified ScrollAmount.

ScrollVertical(ScrollAmount)

將內容區域的目前可見區域垂直捲動指定的 ScrollAmountScrolls the currently visible region of the content area, vertically, the specified ScrollAmount.

SetScrollPercent(Double, Double)

設定水平和/或垂直捲動位置,此值以其在 AutomationElement 內總內容區域的百分比來表示。Sets the horizontal and/or vertical scroll position as a percentage of the total content area within the AutomationElement.

ToString()

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

(繼承來源 Object)

適用於

另請參閱