Metoda UITechnologyElementProxy.GetScrolledPercentage —
Pobiera kwotę przewijane w procentach.
Przestrzeń nazw: Microsoft.VisualStudio.TestTools.UITesting
Zestaw: Microsoft.VisualStudio.TestTools.UITesting (w Microsoft.VisualStudio.TestTools.UITesting.dll)
Składnia
'Deklaracja
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
Parametry
- scrollDirection
Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.ScrollDirection
- scrollElement
Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Element, który jest pasek przewijania poziomo lub pionowo.
Wartość zwracana
Typ: System.Int32
Kwota w procentach.
Implementuje
IUITechnologyElement.GetScrolledPercentage(ScrollDirection, IUITechnologyElement)
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..
Zobacz też
Informacje
UITechnologyElementProxy Klasa