此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。
此成员重写 UITechnologyElement.GetScrolledPercentage(ScrollDirection, IUITechnologyElement)。
命名空间:  Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight
程序集:  Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight(在 Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.dll 中)
语法
声明
Public Overrides Function GetScrolledPercentage ( _
    scrollDirection As ScrollDirection, _
    scrollElement As IUITechnologyElement _
) As Integer
public override int GetScrolledPercentage(
    ScrollDirection scrollDirection,
    IUITechnologyElement scrollElement
)
public:
virtual int GetScrolledPercentage(
    ScrollDirection scrollDirection, 
    IUITechnologyElement^ scrollElement
) override
abstract GetScrolledPercentage : 
        scrollDirection:ScrollDirection * 
        scrollElement:IUITechnologyElement -> int 
override GetScrolledPercentage : 
        scrollDirection:ScrollDirection * 
        scrollElement:IUITechnologyElement -> int 
public override function GetScrolledPercentage(
    scrollDirection : ScrollDirection, 
    scrollElement : IUITechnologyElement
) : int
参数
- scrollDirection
 类型:Microsoft.VisualStudio.TestTools.UITest.Extension.ScrollDirection
返回值
类型:System.Int32
返回 Int32。
实现
IUITechnologyElement.GetScrolledPercentage(ScrollDirection, IUITechnologyElement)
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight 命名空间