Metoda UITechnologyElementProxy.GetBoundingRectangle —
Zwraca współrzędne prostokąt, który całkowicie wypełnia tego elementu.
Przestrzeń nazw: Microsoft.VisualStudio.TestTools.UITesting
Zestaw: Microsoft.VisualStudio.TestTools.UITesting (w Microsoft.VisualStudio.TestTools.UITesting.dll)
Składnia
'Deklaracja
Public Overrides Sub GetBoundingRectangle ( _
<OutAttribute> ByRef left As Integer, _
<OutAttribute> ByRef top As Integer, _
<OutAttribute> ByRef width As Integer, _
<OutAttribute> ByRef height As Integer _
)
public override void GetBoundingRectangle(
out int left,
out int top,
out int width,
out int height
)
public:
virtual void GetBoundingRectangle(
[OutAttribute] int% left,
[OutAttribute] int% top,
[OutAttribute] int% width,
[OutAttribute] int% height
) override
abstract GetBoundingRectangle :
left:int byref *
top:int byref *
width:int byref *
height:int byref -> unit
override GetBoundingRectangle :
left:int byref *
top:int byref *
width:int byref *
height:int byref -> unit
public override function GetBoundingRectangle(
left : int,
top : int,
width : int,
height : int
)
Parametry
- left
Typ: System.Int32%
- top
Typ: System.Int32%
- width
Typ: System.Int32%
- height
Typ: System.Int32%
Implementuje
IUITechnologyElement.GetBoundingRectangle(Int32%, Int32%, Int32%, Int32%)
Uwagi
Jest we współrzędnych ekranu i nigdy nie są buforowane.
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..