无法理解AutomationElement.AutomationElementInformation.BoundingRectangle [英] can't understand AutomationElement.AutomationElementInformation.BoundingRectangle
本文介绍了无法理解AutomationElement.AutomationElementInformation.BoundingRectangle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
关于BoundingRectangle的MSDN [ ^ ]
我无法理解这个BoundingRectangle的含义。
如(42,538, 228,117),是(x,y,宽度,高度)?
MSDN on BoundingRectangle[^]
I can't understand this BoundingRectangle's meaning.
Such as (42, 538, 228, 117),is (x,y,width,height)?
推荐答案
这是最小的矩形,它的边与坐标系的轴平行,只要大到足以包含任意形状的AutomationElement。
是的,它的类型为System.Windows.Rect [ ^ ]因此有一个构造函数,需要四个 Double [ ^ ]你写的订单。加上其他四个重载。
It's the smallest possible rectangle, its sides in parallel to the co-ordinate system's axes, just large enough to enclose your AutomationElement of arbitrary shape.
And yes, the thing is of type System.Windows.Rect[^] and therefore has a constructor that takes four Double[^]s in the order you wrote. Plus four other overloads.
这篇关于无法理解AutomationElement.AutomationElementInformation.BoundingRectangle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文