本文整理汇总了VB.NET中System.Windows.Automation.AutomationElement.ClickablePointProperty字段的典型用法代码示例。如果您正苦于以下问题:VB.NET AutomationElement.ClickablePointProperty字段的具体用法?VB.NET AutomationElement.ClickablePointProperty怎么用?VB.NET AutomationElement.ClickablePointProperty使用的例子?那么恭喜您, 这里精选的字段代码示例或许可以为您提供帮助。
在下文中一共展示了AutomationElement.ClickablePointProperty字段的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: DirectCast
Dim clickablePoint As New System.Windows.Point(- 1, - 1)
Dim prop As Object = autoElement.GetCurrentPropertyValue(AutomationElement.ClickablePointProperty)
' Do not attempt to cast prop if it is null.
If TypeOf prop Is System.Windows.Point Then
clickablePoint = DirectCast(prop, System.Windows.Point)
End If
示例2: DirectCast
Dim clickablePoint1 As System.Windows.Point
Dim clickablePointNoDefault As Object = autoElement.GetCurrentPropertyValue(AutomationElement.ClickablePointProperty, True)
If clickablePointNoDefault Is AutomationElement.NotSupported Then
' TODO Handle the case where you do not wish to proceed using the default value.
Else
clickablePoint1 = DirectCast(clickablePointNoDefault, System.Windows.Point)
End If