IScrollProvider 介面

定義

公開方法與屬性,以支援控制項的使用者介面自動化用戶端存取,此控制項的作用如同子物件集合的可捲動容器。 這個控制項的子系必須實作 IScrollItemProvider

public interface class IScrollProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("b38b8077-1fc3-42a5-8cae-d40c2215055a")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IScrollProvider
public interface IScrollProvider
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("b38b8077-1fc3-42a5-8cae-d40c2215055a")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IScrollProvider = interface
type IScrollProvider = interface
Public Interface IScrollProvider
衍生
屬性

備註

在必須支援控制項模式的消費者介面自動化提供者上實作 ScrollPattern

屬性

HorizontallyScrollable

取得的值表示控制項是否可水平捲動。

HorizontalScrollPercent

取得目前的水平捲軸位置。

HorizontalViewSize

取得目前的水平檢視大小。

VerticallyScrollable

取得的值表示控制項是否可垂直捲動。

VerticalScrollPercent

取得目前的垂直捲動位置。

VerticalViewSize

取得垂直檢視大小。

方法

Scroll(ScrollAmount, ScrollAmount)

水平和垂直捲動內容區域的可見區域。

SetScrollPercent(Double, Double)

設定水平和垂直捲動位置,此值以其在控制項內總內容區域的百分比來表示。

適用於

另請參閱