WPS 开发人员参考 |
Window.GetPoint 方法 |
语法
表达式.GetPoint(ScreenPixelsLeft, ScreenPixelsTop, ScreenPixelsWidth, ScreenPixelsHeight, obj)
表达式 必选。一个代表 Window 对象的变量。
参数
名称 | 必选/可选 | 数据类型 | 说明 |
---|---|---|---|
ScreenPixelsLeft | 必选 | Long | 需要 WPS 为对象的左边界值返回的变量名。 |
ScreenPixelsTop | 必选 | Long | 需要 WPS 为对象的顶部边界值返回的变量名。 |
ScreenPixelsWidth | 必选 | Long | 需要 WPS 为对象的宽度返回的变量名。 |
ScreenPixelsHeight | 必选 | Long | 需要 WPS 为对象的高度值返回的变量名。 |
obj | 必选 | Object | Range 或 Shape 对象。 |
说明
如果在屏幕上看不到整个区域或图形,则导致出错。
示例
本示例检查当前选定对象并返回其屏幕坐标。
示例代码 |
---|
|