UITestControlFactory.FromPoint 方法
返回位于指定坐标位置的新 UITestControl。
命名空间: Microsoft.VisualStudio.TestTools.UITesting
程序集: Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
语法
声明
Public Shared Function FromPoint ( _
absoluteCoordinates As Point _
) As UITestControl
public static UITestControl FromPoint(
Point absoluteCoordinates
)
public:
static UITestControl^ FromPoint(
Point absoluteCoordinates
)
static member FromPoint :
absoluteCoordinates:Point -> UITestControl
public static function FromPoint(
absoluteCoordinates : Point
) : UITestControl
参数
- absoluteCoordinates
类型:System.Drawing.Point
创建新的 UITestControl 所使用的坐标。
返回值
类型:Microsoft.VisualStudio.TestTools.UITesting.UITestControl
位于指定坐标位置的新 UITestControl。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。